Class PlanNode


  • public class PlanNode
    extends Object
    • Constructor Detail

      • PlanNode

        public PlanNode()
    • Method Detail

      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getParent

        public PlanNode getParent()
      • removeAllChildren

        public List<PlanNode> removeAllChildren()
      • getChildCount

        public int getChildCount()
      • getFirstChild

        public PlanNode getFirstChild()
      • getLastChild

        public PlanNode getLastChild()
      • addFirstChild

        public void addFirstChild​(PlanNode child)
      • addLastChild

        public void addLastChild​(PlanNode child)
      • removeFromParent

        public PlanNode removeFromParent()
      • removeChild

        public boolean removeChild​(PlanNode child)
      • removeProperty

        public Object removeProperty​(Object propertyID)
      • 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 from NodeConstants
        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 from NodeConstants 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)
      • toString

        public String toString()
        Print plantree structure starting at this node
        Overrides:
        toString in class Object
        Returns:
        String representing this node and all children under 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)
      • replaceChild

        public void replaceChild​(PlanNode child,
                                 PlanNode replacement)
      • addAsParent

        public void addAsParent​(PlanNode node)
        Add the node as this node's parent.
        Parameters:
        node -
      • getCorrelatedReferences

        public List<SymbolMap> getCorrelatedReferences()
      • getExportedCorrelatedReferences

        public List<SymbolMap> getExportedCorrelatedReferences()
      • getCorrelatedReferenceElements

        public Set<ElementSymbol> getCorrelatedReferenceElements()
      • getCardinality

        public float getCardinality()