Class DistinctAggregationStrategyChooser
java.lang.Object
io.trino.sql.planner.iterative.rule.DistinctAggregationStrategyChooser
Controls which implementation of distinct aggregation should be used for particular
AggregationNode-
Method Summary
Modifier and TypeMethodDescriptioncreateDistinctAggregationStrategyChooser(TaskCountEstimator taskCountEstimator) booleanshouldAddMarkDistinct(AggregationNode aggregationNode, Session session, StatsProvider statsProvider) booleanshouldUsePreAggregate(AggregationNode aggregationNode, Session session, StatsProvider statsProvider)
-
Method Details
-
createDistinctAggregationStrategyChooser
public static DistinctAggregationStrategyChooser createDistinctAggregationStrategyChooser(TaskCountEstimator taskCountEstimator) -
shouldAddMarkDistinct
public boolean shouldAddMarkDistinct(AggregationNode aggregationNode, Session session, StatsProvider statsProvider) -
shouldUsePreAggregate
public boolean shouldUsePreAggregate(AggregationNode aggregationNode, Session session, StatsProvider statsProvider)
-