public abstract class AbstractQueryModelNode extends Object implements QueryModelNode, VariableScopeChange, GraphPatternGroupable
QueryModelNode.| Constructor and Description |
|---|
AbstractQueryModelNode() |
| Modifier and Type | Method and Description |
|---|---|
AbstractQueryModelNode |
clone()
Returns a (deep) clone of this query model node.
|
double |
getCostEstimate() |
QueryModelNode |
getParentNode()
Gets the node's parent.
|
long |
getResultSizeActual() |
double |
getResultSizeEstimate()
Returns the number of tuples that this QueryNode predicts will be outputted.
|
String |
getSignature()
Default implementation of
QueryModelNode.getSignature() that prints the name of the node's class. |
long |
getTotalTimeNanosActual() |
boolean |
isGraphPatternGroup()
Deprecated.
|
boolean |
isVariableScopeChange()
indicates if the node represents a variable scope change.
|
protected boolean |
nullEquals(Object o1,
Object o2) |
void |
replaceChildNode(QueryModelNode current,
QueryModelNode replacement)
Default implementation of
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node. |
protected <T extends QueryModelNode> |
replaceNodeInList(List<T> list,
QueryModelNode current,
QueryModelNode replacement) |
void |
replaceWith(QueryModelNode replacement)
Default implementation of
QueryModelNode.replaceWith(QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node. |
void |
setCostEstimate(double costEstimate) |
void |
setGraphPatternGroup(boolean isGraphPatternGroup)
Deprecated.
|
void |
setParentNode(QueryModelNode parent)
Sets the node's parent.
|
void |
setResultSizeActual(long resultSizeActual) |
void |
setResultSizeEstimate(double resultSizeEstimate) |
void |
setTotalTimeNanosActual(long totalTimeNanosActual) |
void |
setVariableScopeChange(boolean isVariableScopeChange)
Set the value of
VariableScopeChange.isVariableScopeChange() to true or false. |
String |
toString()
Returns an indented print of the node tree, starting from this node.
|
<X extends Exception> |
visitChildren(QueryModelVisitor<X> visitor)
Dummy implementation of
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, visitpublic QueryModelNode getParentNode()
QueryModelNodegetParentNode in interface QueryModelNodepublic void setParentNode(QueryModelNode parent)
QueryModelNodesetParentNode in interface QueryModelNodeparent - The parent node for this node.public boolean isVariableScopeChange()
VariableScopeChangeisVariableScopeChange in interface VariableScopeChangepublic void setVariableScopeChange(boolean isVariableScopeChange)
VariableScopeChangeVariableScopeChange.isVariableScopeChange() to true or false.setVariableScopeChange in interface VariableScopeChange@Deprecated public boolean isGraphPatternGroup()
GraphPatternGroupableisGraphPatternGroup in interface GraphPatternGroupable@Deprecated public void setGraphPatternGroup(boolean isGraphPatternGroup)
GraphPatternGroupableGraphPatternGroupable.isGraphPatternGroup() to true or false.setGraphPatternGroup in interface GraphPatternGroupablepublic <X extends Exception> void visitChildren(QueryModelVisitor<X> visitor) throws X extends Exception
QueryModelNode.visitChildren(org.eclipse.rdf4j.query.algebra.QueryModelVisitor<X>) that does nothing. Subclasses should override this
method when they have child nodes.visitChildren in interface QueryModelNodeX extends Exceptionpublic void replaceChildNode(QueryModelNode current, QueryModelNode replacement)
QueryModelNode.replaceChildNode(QueryModelNode, QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node.replaceChildNode in interface QueryModelNodecurrent - The current child node.replacement - The new child node.public void replaceWith(QueryModelNode replacement)
QueryModelNode.replaceWith(QueryModelNode) that throws an
IllegalArgumentException indicating that current is not a child node of this node.replaceWith in interface QueryModelNodereplacement - The new node.public String getSignature()
QueryModelNode.getSignature() that prints the name of the node's class.getSignature in interface QueryModelNodepublic String toString()
QueryModelNodetoString in interface QueryModelNodetoString in class Objectpublic AbstractQueryModelNode clone()
QueryModelNodeclone in interface QueryModelNodeclone in class Objectprotected <T extends QueryModelNode> boolean replaceNodeInList(List<T> list, QueryModelNode current, QueryModelNode replacement)
public 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 QueryModelNodeCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.