Package com.mckoi.database
Class QueryPlan.NonCorrelatedAnyAllNode
java.lang.Object
com.mckoi.database.QueryPlan.BranchQueryPlanNode
com.mckoi.database.QueryPlan.NonCorrelatedAnyAllNode
- All Implemented Interfaces:
QueryPlanNode
,Serializable
,Cloneable
- Enclosing class:
- QueryPlan
A branch node for a non-correlated ANY or ALL sub-query evaluation. This
node requires a set of columns from the left branch and an operator.
The right branch represents the non-correlated sub-query.
NOTE: The cost of a SubQuery is higher if the right child result is greater than the left child result. The plan should be arranged so smaller results are on the left.
- See Also:
-
Field Summary
Fields inherited from class com.mckoi.database.QueryPlan.BranchQueryPlanNode
left, right
-
Constructor Summary
ConstructorsConstructorDescriptionNonCorrelatedAnyAllNode
(QueryPlanNode left, QueryPlanNode right, Variable[] left_vars, Operator subquery_op) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deep clone.evaluate
(QueryContext context) Evaluates the node and returns the result as a Table.Methods inherited from class com.mckoi.database.QueryPlan.BranchQueryPlanNode
debugString, discoverCorrelatedVariables, discoverTableNames, left, right
-
Constructor Details
-
NonCorrelatedAnyAllNode
public NonCorrelatedAnyAllNode(QueryPlanNode left, QueryPlanNode right, Variable[] left_vars, Operator subquery_op)
-
-
Method Details
-
evaluate
Description copied from interface:QueryPlanNode
Evaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables -
clone
Description copied from class:QueryPlan.BranchQueryPlanNode
Deep clone.- Specified by:
clone
in interfaceQueryPlanNode
- Overrides:
clone
in classQueryPlan.BranchQueryPlanNode
- Throws:
CloneNotSupportedException
-
titleString
- Overrides:
titleString
in classQueryPlan.BranchQueryPlanNode
-