@Immutable public class AggregationNode extends PlanNode
| Modifier and Type | Class and Description |
|---|---|
static class |
AggregationNode.Aggregation |
static class |
AggregationNode.GroupingSetDescriptor |
static class |
AggregationNode.Step |
| Constructor and Description |
|---|
AggregationNode(PlanNodeId id,
PlanNode source,
Map<Symbol,AggregationNode.Aggregation> aggregations,
AggregationNode.GroupingSetDescriptor groupingSets,
List<Symbol> preGroupedSymbols,
AggregationNode.Step step,
Optional<Symbol> hashSymbol,
Optional<Symbol> groupIdSymbol) |
public AggregationNode(PlanNodeId id, PlanNode source, Map<Symbol,AggregationNode.Aggregation> aggregations, AggregationNode.GroupingSetDescriptor groupingSets, List<Symbol> preGroupedSymbols, AggregationNode.Step step, Optional<Symbol> hashSymbol, Optional<Symbol> groupIdSymbol)
public AggregationNode.GroupingSetDescriptor getGroupingSets()
public boolean hasDefaultOutput()
SELECT count(*) FROM nation WHERE nationkey < 0
A default output of "0" is expected to be produced by FINAL aggregation operator.
public boolean hasEmptyGroupingSet()
public boolean hasNonEmptyGroupingSet()
public List<PlanNode> getSources()
getSources in class PlanNodepublic List<Symbol> getOutputSymbols()
getOutputSymbols in class PlanNodepublic Map<Symbol,AggregationNode.Aggregation> getAggregations()
public int getGroupingSetCount()
public PlanNode getSource()
public AggregationNode.Step getStep()
public boolean hasOrderings()
public <R,C> R accept(PlanVisitor<R,C> visitor, C context)
public PlanNode replaceChildren(List<PlanNode> newChildren)
replaceChildren in class PlanNodepublic boolean producesDistinctRows()
public boolean isDecomposable(FunctionRegistry functionRegistry)
public boolean hasSingleNodeExecutionPreference(FunctionRegistry functionRegistry)
public boolean isStreamable()
public static AggregationNode.GroupingSetDescriptor globalAggregation()
public static AggregationNode.GroupingSetDescriptor singleGroupingSet(List<Symbol> groupingKeys)
public static AggregationNode.GroupingSetDescriptor groupingSets(List<Symbol> groupingKeys, int groupingSetCount, Set<Integer> globalGroupingSets)
Copyright © 2012–2019. All rights reserved.