Package com.mckoi.database
Class QueryPlan.FunctionalSelectNode
java.lang.Object
com.mckoi.database.QueryPlan.SingleQueryPlanNode
com.mckoi.database.QueryPlan.FunctionalSelectNode
- All Implemented Interfaces:
QueryPlanNode,Serializable,Cloneable
- Enclosing class:
QueryPlan
The node for performing a functional select operation on the child node.
Some examples of this type of query are;
CONCAT(a, ' ', b) > 'abba boh'
TONUMBER(DATEFORMAT(a, 'yyyy')) > 2001
LOWER(a) invalid input: '<' 'ook'
The reason this is a separate node is because it is possible to exploit
a functional indexes on a table with this node.
The given expression MUST be of the form; 'function_expression' 'operator' 'constant'
- See Also:
-
Field Summary
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deep clone.discoverCorrelatedVariables(int level, ArrayList list) Default implementation that discovers correlated variables for the given offset level.discoverTableNames(ArrayList list) Default implementation delegates responsibility to child.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 Details
-
FunctionalSelectNode
-
-
Method Details
-
evaluate
Description copied from interface:QueryPlanNodeEvaluates the node and returns the result as a Table. The VariableResolver resolves any outer variables -
discoverTableNames
Description copied from class:QueryPlan.SingleQueryPlanNodeDefault implementation delegates responsibility to child.- Specified by:
discoverTableNamesin interfaceQueryPlanNode- Overrides:
discoverTableNamesin classQueryPlan.SingleQueryPlanNode
-
clone
Description copied from class:QueryPlan.SingleQueryPlanNodeDeep clone.- Specified by:
clonein interfaceQueryPlanNode- Overrides:
clonein classQueryPlan.SingleQueryPlanNode- Throws:
CloneNotSupportedException
-