Package com.mckoi.database
Class QueryPlan.CreateFunctionsNode
java.lang.Object
com.mckoi.database.QueryPlan.SingleQueryPlanNode
com.mckoi.database.QueryPlan.CreateFunctionsNode
- All Implemented Interfaces:
QueryPlanNode,Serializable,Cloneable
- Enclosing class:
QueryPlan
The node for merging the child node with a set of new function columns
over the entire result. For example, we may want to add an expression
'a + 10' or 'coalesce(a, b, 1)'.
- See Also:
-
Field Summary
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode
child -
Constructor Summary
ConstructorsConstructorDescriptionCreateFunctionsNode(QueryPlanNode child, Expression[] function_list, String[] name_list) Constructor. -
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
-
Constructor Details
-
CreateFunctionsNode
Constructor.
-
-
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
-
titleString
- Overrides:
titleStringin classQueryPlan.SingleQueryPlanNode
-