|
|||||||||
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.CreateFunctionsNode
public static class QueryPlan.CreateFunctionsNode
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)'.
Field Summary |
---|
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode |
---|
child |
Constructor Summary | |
---|---|
QueryPlan.CreateFunctionsNode(QueryPlanNode child,
Expression[] function_list,
java.lang.String[] name_list)
Constructor. |
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.CreateFunctionsNode(QueryPlanNode child, Expression[] function_list, java.lang.String[] name_list)
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 |