Package io.trino.cost
Class AggregationStatsRule
- All Implemented Interfaces:
ComposableStatsCalculator.Rule<AggregationNode>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<PlanNodeStatsEstimate> doCalculate(AggregationNode node, StatsCalculator.Context context) static doublegetRowsCount(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols) static PlanNodeStatsEstimategroupBy(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols, Map<Symbol, AggregationNode.Aggregation> aggregations) Methods inherited from class io.trino.cost.SimpleStatsRule
calculate
-
Constructor Details
-
AggregationStatsRule
-
-
Method Details
-
getPattern
-
doCalculate
protected Optional<PlanNodeStatsEstimate> doCalculate(AggregationNode node, StatsCalculator.Context context) - Specified by:
doCalculatein classSimpleStatsRule<AggregationNode>
-
groupBy
public static PlanNodeStatsEstimate groupBy(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols, Map<Symbol, AggregationNode.Aggregation> aggregations) -
getRowsCount
public static double getRowsCount(PlanNodeStatsEstimate sourceStats, Collection<Symbol> groupBySymbols)
-