|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.QueryPlan.SingleQueryPlanNode
com.mckoi.database.QueryPlan.RangeSelectNode
public static class QueryPlan.RangeSelectNode
The node for performing a simple indexed query on a single column of the child node. Finds the set from the child node that matches the range.
The given Expression object must conform to a number of rules. It may reference only one column in the child node. It must consist of only simple mathemetical and logical operators (<, >, =, <>, >=, <=, AND, OR). The left side of each mathematical operator must be a variable, and the right side must be a constant (parameter subsitution or correlated value). For example; (col > 10 AND col < 100) OR col > 1000 OR col == 10
Breaking any of these rules will mean the range select can not happen.
Field Summary |
---|
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode |
---|
child |
Constructor Summary | |
---|---|
QueryPlan.RangeSelectNode(QueryPlanNode child,
Expression exp)
|
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 child. |
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.SingleQueryPlanNode |
---|
child, debugString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryPlan.RangeSelectNode(QueryPlanNode child, Expression exp)
Method Detail |
---|
public Table evaluate(QueryContext context)
QueryPlanNode
public java.util.ArrayList discoverTableNames(java.util.ArrayList list)
QueryPlan.SingleQueryPlanNode
discoverTableNames
in interface QueryPlanNode
discoverTableNames
in class QueryPlan.SingleQueryPlanNode
public java.util.ArrayList discoverCorrelatedVariables(int level, java.util.ArrayList list)
QueryPlan.SingleQueryPlanNode
discoverCorrelatedVariables
in interface QueryPlanNode
discoverCorrelatedVariables
in class QueryPlan.SingleQueryPlanNode
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
QueryPlan.SingleQueryPlanNode
clone
in interface QueryPlanNode
clone
in class QueryPlan.SingleQueryPlanNode
java.lang.CloneNotSupportedException
public java.lang.String titleString()
titleString
in class QueryPlan.SingleQueryPlanNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |