public class AggregationStatsRule extends SimpleStatsRule<AggregationNode>
| Constructor and Description |
|---|
AggregationStatsRule(StatsNormalizer normalizer) |
| Modifier and Type | Method and Description |
|---|---|
protected Optional<PlanNodeStatsEstimate> |
doCalculate(AggregationNode node,
StatsProvider statsProvider,
Lookup lookup,
Session session,
TypeProvider types) |
Pattern<AggregationNode> |
getPattern() |
static PlanNodeStatsEstimate |
groupBy(PlanNodeStatsEstimate sourceStats,
Collection<Symbol> groupBySymbols,
Map<Symbol,AggregationNode.Aggregation> aggregations) |
calculatepublic AggregationStatsRule(StatsNormalizer normalizer)
public Pattern<AggregationNode> getPattern()
protected Optional<PlanNodeStatsEstimate> doCalculate(AggregationNode node, StatsProvider statsProvider, Lookup lookup, Session session, TypeProvider types)
doCalculate in class SimpleStatsRule<AggregationNode>public static PlanNodeStatsEstimate groupBy(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols, Map<Symbol,AggregationNode.Aggregation> aggregations)
Copyright © 2012–2019. All rights reserved.