public static class QueryPlan.GroupNode extends QueryPlan.SingleQueryPlanNode
NOTE: The whole child is a group if columns is null.
child
Constructor and Description |
---|
GroupNode(QueryPlanNode child,
Variable[] columns,
Variable group_max_column,
Expression[] function_list,
String[] name_list)
Groups over the given columns from the child.
|
GroupNode(QueryPlanNode child,
Variable group_max_column,
Expression[] function_list,
String[] name_list)
Groups over the entire child (always ends in 1 result in set).
|
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, debugString
public GroupNode(QueryPlanNode child, Variable[] columns, Variable group_max_column, Expression[] function_list, String[] name_list)
public GroupNode(QueryPlanNode child, Variable group_max_column, Expression[] function_list, String[] name_list)
public Table evaluate(QueryContext context)
QueryPlanNode
public ArrayList discoverTableNames(ArrayList list)
QueryPlan.SingleQueryPlanNode
discoverTableNames
in interface QueryPlanNode
discoverTableNames
in class QueryPlan.SingleQueryPlanNode
public ArrayList discoverCorrelatedVariables(int level, ArrayList list)
QueryPlan.SingleQueryPlanNode
discoverCorrelatedVariables
in interface QueryPlanNode
discoverCorrelatedVariables
in class QueryPlan.SingleQueryPlanNode
public Object clone() throws CloneNotSupportedException
QueryPlan.SingleQueryPlanNode
clone
in interface QueryPlanNode
clone
in class QueryPlan.SingleQueryPlanNode
CloneNotSupportedException
public String titleString()
titleString
in class QueryPlan.SingleQueryPlanNode
Copyright © 2015. All rights reserved.