Class OptimizeMixedDistinctAggregations
java.lang.Object
io.trino.sql.planner.iterative.rule.OptimizeMixedDistinctAggregations
- All Implemented Interfaces:
Rule<AggregationNode>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result -
Constructor Summary
ConstructorsConstructorDescriptionOptimizeMixedDistinctAggregations(PlannerContext plannerContext, TaskCountEstimator taskCountEstimator) -
Method Summary
Modifier and TypeMethodDescriptionapply(AggregationNode node, Captures captures, Rule.Context context) static booleancanUsePreAggregate(AggregationNode aggregationNode) static longdistinctAggregationsUniqueArgumentCount(AggregationNode aggregationNode) Returns a pattern to which plan nodes this rule applies.static booleanhasMultipleDistincts(AggregationNode aggregationNode)
-
Constructor Details
-
OptimizeMixedDistinctAggregations
public OptimizeMixedDistinctAggregations(PlannerContext plannerContext, TaskCountEstimator taskCountEstimator)
-
-
Method Details
-
canUsePreAggregate
-
hasMultipleDistincts
-
distinctAggregationsUniqueArgumentCount
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<AggregationNode>
-
apply
- Specified by:
applyin interfaceRule<AggregationNode>
-