Package io.prestosql.cost
Class AggregationStatsRule
- java.lang.Object
-
- io.prestosql.cost.SimpleStatsRule<AggregationNode>
-
- io.prestosql.cost.AggregationStatsRule
-
- All Implemented Interfaces:
ComposableStatsCalculator.Rule<AggregationNode>
public class AggregationStatsRule extends SimpleStatsRule<AggregationNode>
-
-
Constructor Summary
Constructors Constructor Description AggregationStatsRule(StatsNormalizer normalizer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class io.prestosql.cost.SimpleStatsRule
calculate
-
-
-
-
Constructor Detail
-
AggregationStatsRule
public AggregationStatsRule(StatsNormalizer normalizer)
-
-
Method Detail
-
getPattern
public Pattern<AggregationNode> getPattern()
-
doCalculate
protected Optional<PlanNodeStatsEstimate> doCalculate(AggregationNode node, StatsProvider statsProvider, Lookup lookup, Session session, TypeProvider types)
- Specified by:
doCalculate
in classSimpleStatsRule<AggregationNode>
-
groupBy
public static PlanNodeStatsEstimate groupBy(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols, Map<Symbol,AggregationNode.Aggregation> aggregations)
-
-