public class ExprAggregateNodeUtil
extends java.lang.Object
Constructor and Description |
---|
ExprAggregateNodeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
getAggregatesBottomUp(ExprNode[][] nodes,
java.util.List<ExprAggregateNode> aggregateNodes) |
static void |
getAggregatesBottomUp(ExprNode[] nodes,
java.util.List<ExprAggregateNode> aggregateNodes) |
static void |
getAggregatesBottomUp(ExprNode topNode,
java.util.List<ExprAggregateNode> aggregateNodes)
Populates into the supplied list all aggregation functions within this expression, if any.
|
public static void getAggregatesBottomUp(ExprNode[][] nodes, java.util.List<ExprAggregateNode> aggregateNodes)
public static void getAggregatesBottomUp(ExprNode[] nodes, java.util.List<ExprAggregateNode> aggregateNodes)
public static void getAggregatesBottomUp(ExprNode topNode, java.util.List<ExprAggregateNode> aggregateNodes)
Populates by going bottom-up such that nested aggregates appear first.
I.e. sum(volume * sum(price)) would put first A then B into the list with A=sum(price) and B=sum(volume * A)
topNode
- is the expression node to deep inspectaggregateNodes
- is a list of node to populate into