|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.QueryPlan.BranchQueryPlanNode
com.mckoi.database.QueryPlan.JoinNode
public static class QueryPlan.JoinNode
A branch node for a non-equi join between two tables.
NOTE: The cost of a LeftJoin 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.
| Field Summary |
|---|
| Fields inherited from class com.mckoi.database.QueryPlan.BranchQueryPlanNode |
|---|
left, right |
| Constructor Summary | |
|---|---|
QueryPlan.JoinNode(QueryPlanNode left,
QueryPlanNode right,
Variable left_var,
Operator join_op,
Expression right_expression)
|
|
| Method Summary | |
|---|---|
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 children. |
Table |
evaluate(QueryContext context)
Evaluates the node and returns the result as a Table. |
java.lang.String |
titleString()
|
| Methods inherited from class com.mckoi.database.QueryPlan.BranchQueryPlanNode |
|---|
debugString, left, right |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryPlan.JoinNode(QueryPlanNode left,
QueryPlanNode right,
Variable left_var,
Operator join_op,
Expression right_expression)
| Method Detail |
|---|
public Table evaluate(QueryContext context)
QueryPlanNode
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
QueryPlan.BranchQueryPlanNode
discoverTableNames in interface QueryPlanNodediscoverTableNames in class QueryPlan.BranchQueryPlanNode
public java.util.ArrayList discoverCorrelatedVariables(int level,
java.util.ArrayList list)
QueryPlan.BranchQueryPlanNode
discoverCorrelatedVariables in interface QueryPlanNodediscoverCorrelatedVariables in class QueryPlan.BranchQueryPlanNode
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
QueryPlan.BranchQueryPlanNode
clone in interface QueryPlanNodeclone in class QueryPlan.BranchQueryPlanNodejava.lang.CloneNotSupportedExceptionpublic java.lang.String titleString()
titleString in class QueryPlan.BranchQueryPlanNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||