Class PushAggregationIntoTableScan
java.lang.Object
io.trino.sql.planner.iterative.rule.PushAggregationIntoTableScan
- 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
ConstructorsConstructorDescriptionPushAggregationIntoTableScan(PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer) -
Method Summary
Modifier and TypeMethodDescriptionapply(AggregationNode node, Captures captures, Rule.Context context) Returns a pattern to which plan nodes this rule applies.booleanpushAggregationIntoTableScan(PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, Rule.Context context, PlanNode aggregationNode, TableScanNode tableScan, Map<Symbol, AggregationNode.Aggregation> aggregations, List<Symbol> groupingKeys)
-
Constructor Details
-
PushAggregationIntoTableScan
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<AggregationNode>
-
isEnabled
- Specified by:
isEnabledin interfaceRule<AggregationNode>
-
apply
- Specified by:
applyin interfaceRule<AggregationNode>
-
pushAggregationIntoTableScan
public static Optional<PlanNode> pushAggregationIntoTableScan(PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, Rule.Context context, PlanNode aggregationNode, TableScanNode tableScan, Map<Symbol, AggregationNode.Aggregation> aggregations, List<Symbol> groupingKeys)
-