public class CheckStatementPattern extends Object implements StatementTupleExpr, BoundJoinTupleExpr
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected QueryInfo |
queryInfo |
protected StatementTupleExpr |
stmt |
| Constructor and Description |
|---|
CheckStatementPattern(StatementTupleExpr stmt,
QueryInfo queryInfo) |
| Modifier and Type | Method and Description |
|---|---|
CheckStatementPattern |
clone()
Returns a (deep) clone of this query model node.
|
CloseableIteration<BindingSet,QueryEvaluationException> |
evaluate(BindingSet bindings)
Evaluate this expression using the provided bindings
|
Set<String> |
getAssuredBindingNames()
Gets the names of the bindings that are guaranteed to be present in the results produced by this tuple
expression.
|
Set<String> |
getBindingNames()
Gets the names of the bindings that are, or can be, returned by this tuple expression when it is evaluated.
|
double |
getCostEstimate() |
int |
getFreeVarCount() |
List<String> |
getFreeVars() |
String |
getId() |
QueryModelNode |
getParentNode()
Gets the node's parent.
|
QueryInfo |
getQueryInfo()
Retrieve the attached query information of the tuple expression
|
long |
getResultSizeActual() |
double |
getResultSizeEstimate()
Returns the number of tuples that this QueryNode predicts will be outputted.
|
String |
getSignature()
Returns the signature of this query model node.
|
StatementPattern |
getStatementPattern() |
List<StatementSource> |
getStatementSources() |
long |
getTotalTimeNanosActual() |
boolean |
hasFreeVarsFor(BindingSet binding)
returns true iff this statement has free variables in the presence of the specified binding set
|
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Replaces one of the child nodes with a new node.
|
void |
replaceWith(QueryModelNode replacement)
Substitutes this node with a new node in the query model tree.
|
void |
setCostEstimate(double costEstimate) |
void |
setParentNode(QueryModelNode parent)
Sets the node's parent.
|
void |
setResultSizeActual(long resultSizeActual) |
void |
setResultSizeEstimate(double resultSizeEstimate) |
void |
setTotalTimeNanosActual(long totalTimeNanosActual) |
<X extends Exception> |
visit(QueryModelVisitor<X> visitor)
Visits this node.
|
<X extends Exception> |
visitChildren(QueryModelVisitor<X> visitor)
Visits the children of this node.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, toStringprotected final StatementTupleExpr stmt
protected final String id
protected final QueryInfo queryInfo
public CheckStatementPattern(StatementTupleExpr stmt, QueryInfo queryInfo)
public StatementPattern getStatementPattern()
public int getFreeVarCount()
getFreeVarCount in interface FedXTupleExprpublic List<String> getFreeVars()
getFreeVars in interface VariableExprpublic String getId()
getId in interface StatementTupleExprpublic List<StatementSource> getStatementSources()
getStatementSources in interface StatementTupleExprpublic boolean hasFreeVarsFor(BindingSet binding)
StatementTupleExprhasFreeVarsFor in interface StatementTupleExprpublic Set<String> getAssuredBindingNames()
TupleExprgetAssuredBindingNames in interface TupleExprpublic Set<String> getBindingNames()
TupleExprgetBindingNames in interface TupleExprpublic QueryModelNode getParentNode()
QueryModelNodegetParentNode in interface QueryModelNodepublic String getSignature()
QueryModelNodeQueryModelNode.toString().getSignature in interface QueryModelNodepublic void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
QueryModelNodereplaceChildNode in interface QueryModelNodecurrent - The current child node.replacement - The new child node.public void replaceWith(QueryModelNode replacement)
QueryModelNodereplaceWith in interface QueryModelNodereplacement - The new node.public void setParentNode(QueryModelNode parent)
QueryModelNodesetParentNode in interface QueryModelNodeparent - The parent node for this node.public <X extends Exception> void visit(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNodevisit in interface QueryModelNodeX extends Exceptionpublic <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNodeQueryModelNode.visit(QueryModelVisitor) on all of its child nodes.visitChildren in interface QueryModelNodeX extends Exceptionpublic CheckStatementPattern clone()
QueryModelNodepublic double getResultSizeEstimate()
QueryModelNodegetResultSizeEstimate in interface QueryModelNodepublic void setResultSizeEstimate(double resultSizeEstimate)
setResultSizeEstimate in interface QueryModelNodepublic long getResultSizeActual()
getResultSizeActual in interface QueryModelNodepublic void setResultSizeActual(long resultSizeActual)
setResultSizeActual in interface QueryModelNodepublic double getCostEstimate()
getCostEstimate in interface QueryModelNodepublic void setCostEstimate(double costEstimate)
setCostEstimate in interface QueryModelNodepublic long getTotalTimeNanosActual()
getTotalTimeNanosActual in interface QueryModelNodepublic void setTotalTimeNanosActual(long totalTimeNanosActual)
setTotalTimeNanosActual in interface QueryModelNodepublic CloseableIteration<BindingSet,QueryEvaluationException> evaluate(BindingSet bindings) throws QueryEvaluationException
StatementTupleExprevaluate in interface StatementTupleExprQueryEvaluationExceptionpublic QueryInfo getQueryInfo()
QueryRefgetQueryInfo in interface QueryRefQueryInfoCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.