|
|||||||||
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.GroupNode
public static class QueryPlan.GroupNode
The node for performing a grouping operation on the columns of the child node. As well as grouping, any aggregate functions must also be defined with this plan.
NOTE: The whole child is a group if columns is null.
Field Summary |
---|
Fields inherited from class com.mckoi.database.QueryPlan.SingleQueryPlanNode |
---|
child |
Constructor Summary | |
---|---|
QueryPlan.GroupNode(QueryPlanNode child,
Variable[] columns,
Variable group_max_column,
Expression[] function_list,
java.lang.String[] name_list)
Groups over the given columns from the child. |
|
QueryPlan.GroupNode(QueryPlanNode child,
Variable group_max_column,
Expression[] function_list,
java.lang.String[] name_list)
Groups over the entire child (always ends in 1 result in set). |
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.GroupNode(QueryPlanNode child, Variable[] columns, Variable group_max_column, Expression[] function_list, java.lang.String[] name_list)
public QueryPlan.GroupNode(QueryPlanNode child, Variable group_max_column, 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 |