Class PushAggregationIntoTableScan
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushAggregationIntoTableScan
-
- All Implemented Interfaces:
Rule<AggregationNode>
public class PushAggregationIntoTableScan extends Object implements Rule<AggregationNode>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushAggregationIntoTableScan(Metadata metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(AggregationNode node, Captures captures, Rule.Context context)Pattern<AggregationNode>getPattern()Returns a pattern to which plan nodes this rule applies.booleanisEnabled(Session session)static Optional<PlanNode>pushAggregationIntoTableScan(Metadata metadata, Rule.Context context, PlanNode aggregationNode, TableScanNode tableScan, Map<Symbol,AggregationNode.Aggregation> aggregations, List<Symbol> groupingKeys)
-
-
-
Constructor Detail
-
PushAggregationIntoTableScan
public PushAggregationIntoTableScan(Metadata metadata)
-
-
Method Detail
-
getPattern
public Pattern<AggregationNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<AggregationNode>
-
isEnabled
public boolean isEnabled(Session session)
- Specified by:
isEnabledin interfaceRule<AggregationNode>
-
apply
public Rule.Result apply(AggregationNode node, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<AggregationNode>
-
pushAggregationIntoTableScan
public static Optional<PlanNode> pushAggregationIntoTableScan(Metadata metadata, Rule.Context context, PlanNode aggregationNode, TableScanNode tableScan, Map<Symbol,AggregationNode.Aggregation> aggregations, List<Symbol> groupingKeys)
-
-