Class PlanNode
- java.lang.Object
-
- org.teiid.query.optimizer.relational.plantree.PlanNode
-
public class PlanNode extends Object
-
-
Constructor Summary
Constructors Constructor Description PlanNode()
-
Method Summary
-
-
-
Method Detail
-
getType
public int getType()
-
setType
public void setType(int type)
-
getParent
public PlanNode getParent()
-
getChildCount
public int getChildCount()
-
getFirstChild
public PlanNode getFirstChild()
-
getLastChild
public PlanNode getLastChild()
-
addFirstChild
public void addFirstChild(PlanNode child)
-
addLastChild
public void addLastChild(PlanNode child)
-
addChildren
public void addChildren(Collection<PlanNode> otherChildren)
-
removeFromParent
public PlanNode removeFromParent()
-
removeChild
public boolean removeChild(PlanNode child)
-
getProperty
public Object getProperty(NodeConstants.Info propertyID)
-
setProperty
public Object setProperty(NodeConstants.Info propertyID, Object value)
-
hasProperty
public boolean hasProperty(NodeConstants.Info propertyID)
Indicates if there is a non-null value for the property key or not- Parameters:
propertyID
- one of the properties fromNodeConstants
- Returns:
- whether this node has a non-null value for that property
-
hasCollectionProperty
public boolean hasCollectionProperty(NodeConstants.Info propertyID)
Indicates if there is a non-null and non-empty Collection value for the property key or not- Parameters:
propertyID
- one of the properties fromNodeConstants
which is known to be a Collection object of some sort- Returns:
- whether this node has a non-null and non-empty Collection value for that property
-
addGroup
public void addGroup(GroupSymbol groupID)
-
addGroups
public void addGroups(Collection<GroupSymbol> newGroups)
-
getGroups
public Set<GroupSymbol> getGroups()
-
toString
public String toString()
Print plantree structure starting at this node
-
nodeToString
public String nodeToString(boolean recusive)
Get the single node in full or recursive which considers modifications.- Returns:
- String representing just this node
-
hasBooleanProperty
public boolean hasBooleanProperty(NodeConstants.Info propertyKey)
-
addAsParent
public void addAsParent(PlanNode node)
Add the node as this node's parent.- Parameters:
node
-
-
getCorrelatedReferenceElements
public Set<ElementSymbol> getCorrelatedReferenceElements()
-
getSubqueryContainers
public List<SubqueryContainer<?>> getSubqueryContainers()
-
getCardinality
public float getCardinality()
-
recordDebugAnnotation
public void recordDebugAnnotation(String annotation, Object modelID, String resolution, AnalysisRecord record, QueryMetadataInterface metadata) throws QueryMetadataException, TeiidComponentException
-
-