public static class QueryPlan.RangeSelectNode extends QueryPlan.SingleQueryPlanNode
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.
child| Constructor and Description |
|---|
RangeSelectNode(QueryPlanNode child,
Expression exp) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Deep clone.
|
ArrayList |
discoverCorrelatedVariables(int level,
ArrayList list)
Default implementation that discovers correlated variables for the
given offset level.
|
ArrayList |
discoverTableNames(ArrayList list)
Default implementation delegates responsibility to child.
|
Table |
evaluate(QueryContext context)
Evaluates the node and returns the result as a Table.
|
String |
titleString() |
child, debugStringpublic RangeSelectNode(QueryPlanNode child, Expression exp)
public Table evaluate(QueryContext context)
QueryPlanNodepublic ArrayList discoverTableNames(ArrayList list)
QueryPlan.SingleQueryPlanNodediscoverTableNames in interface QueryPlanNodediscoverTableNames in class QueryPlan.SingleQueryPlanNodepublic ArrayList discoverCorrelatedVariables(int level, ArrayList list)
QueryPlan.SingleQueryPlanNodediscoverCorrelatedVariables in interface QueryPlanNodediscoverCorrelatedVariables in class QueryPlan.SingleQueryPlanNodepublic Object clone() throws CloneNotSupportedException
QueryPlan.SingleQueryPlanNodeclone in interface QueryPlanNodeclone in class QueryPlan.SingleQueryPlanNodeCloneNotSupportedExceptionpublic String titleString()
titleString in class QueryPlan.SingleQueryPlanNodeCopyright © 2019. All rights reserved.