Package com.mckoi.database
Class QueryPlan.BranchQueryPlanNode
- java.lang.Object
-
- com.mckoi.database.QueryPlan.BranchQueryPlanNode
-
- All Implemented Interfaces:
QueryPlanNode,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
QueryPlan.CompositeNode,QueryPlan.EquiJoinNode,QueryPlan.JoinNode,QueryPlan.LogicalUnionNode,QueryPlan.NaturalJoinNode,QueryPlan.NonCorrelatedAnyAllNode
- Enclosing class:
- QueryPlan
public abstract static class QueryPlan.BranchQueryPlanNode extends java.lang.Object implements QueryPlanNode
A QueryPlanNode that is a branch with two child nodes.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryPlanNodeleftThe left and right node.protected QueryPlanNoderightThe left and right node.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBranchQueryPlanNode(QueryPlanNode left, QueryPlanNode right)The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Deep clone.voiddebugString(int level, java.lang.StringBuffer buf)Writes a textural representation of the node to the StringBuffer at the given indent level.java.util.ArrayListdiscoverCorrelatedVariables(int level, java.util.ArrayList list)Default implementation that discovers correlated variables for the given offset level.java.util.ArrayListdiscoverTableNames(java.util.ArrayList list)Default implementation delegates responsibility to children.QueryPlanNodeleft()Returns the left node.QueryPlanNoderight()Returns the right node.java.lang.StringtitleString()-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.mckoi.database.QueryPlanNode
evaluate
-
-
-
-
Field Detail
-
left
protected QueryPlanNode left
The left and right node.
-
right
protected QueryPlanNode right
The left and right node.
-
-
Constructor Detail
-
BranchQueryPlanNode
protected BranchQueryPlanNode(QueryPlanNode left, QueryPlanNode right)
The Constructor.
-
-
Method Detail
-
left
public QueryPlanNode left()
Returns the left node.
-
right
public QueryPlanNode right()
Returns the right node.
-
discoverTableNames
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
Default implementation delegates responsibility to children.- Specified by:
discoverTableNamesin interfaceQueryPlanNode
-
discoverCorrelatedVariables
public java.util.ArrayList discoverCorrelatedVariables(int level, java.util.ArrayList list)Default implementation that discovers correlated variables for the given offset level.- Specified by:
discoverCorrelatedVariablesin interfaceQueryPlanNode
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDeep clone.- Specified by:
clonein interfaceQueryPlanNode- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
titleString
public java.lang.String titleString()
-
debugString
public void debugString(int level, java.lang.StringBuffer buf)Description copied from interface:QueryPlanNodeWrites a textural representation of the node to the StringBuffer at the given indent level.- Specified by:
debugStringin interfaceQueryPlanNode
-
-