Package com.mckoi.database
Class QueryPlan.MultiColumnEquiSelectNode
- java.lang.Object
-
- com.mckoi.database.QueryPlan.SingleQueryPlanNode
-
- com.mckoi.database.QueryPlan.MultiColumnEquiSelectNode
-
- All Implemented Interfaces:
QueryPlanNode
,java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- QueryPlan
public static class QueryPlan.MultiColumnEquiSelectNode extends QueryPlan.SingleQueryPlanNode
The node for performing an equi-select on a group of columns of the child node. This is a separate node instead of chained IndexedSelectNode's so that we might exploit multi-column indexes.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child
-
-
Constructor Summary
Constructors Constructor Description MultiColumnEquiSelectNode(QueryPlanNode child, Variable[] columns, Expression[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Deep clone.java.util.ArrayList
discoverCorrelatedVariables(int level, java.util.ArrayList list)
Default implementation that discovers correlated variables for the given offset level.java.util.ArrayList
discoverTableNames(java.util.ArrayList list)
Default implementation delegates responsibility to child.Table
evaluate(QueryContext context)
Evaluates the node and returns the result as a Table.-
Methods inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child, debugString, titleString
-
-
-
-
Constructor Detail
-
MultiColumnEquiSelectNode
public MultiColumnEquiSelectNode(QueryPlanNode child, Variable[] columns, Expression[] values)
-
-
Method Detail
-
evaluate
public Table evaluate(QueryContext context)
Description copied from interface:QueryPlanNode
Evaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables
-
discoverTableNames
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
Description copied from class:QueryPlan.SingleQueryPlanNode
Default implementation delegates responsibility to child.- Specified by:
discoverTableNames
in interfaceQueryPlanNode
- Overrides:
discoverTableNames
in classQueryPlan.SingleQueryPlanNode
-
discoverCorrelatedVariables
public java.util.ArrayList discoverCorrelatedVariables(int level, java.util.ArrayList list)
Description copied from class:QueryPlan.SingleQueryPlanNode
Default implementation that discovers correlated variables for the given offset level.- Specified by:
discoverCorrelatedVariables
in interfaceQueryPlanNode
- Overrides:
discoverCorrelatedVariables
in classQueryPlan.SingleQueryPlanNode
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Description copied from class:QueryPlan.SingleQueryPlanNode
Deep clone.- Specified by:
clone
in interfaceQueryPlanNode
- Overrides:
clone
in classQueryPlan.SingleQueryPlanNode
- Throws:
java.lang.CloneNotSupportedException
-
-