public class AddIntermediateAggregations extends Object implements Rule<AggregationNode>
From:
- Aggregation (FINAL)
- RemoteExchange (GATHER)
- Aggregation (PARTIAL)
To:
- Aggregation (FINAL)
- LocalExchange (GATHER)
- Aggregation (INTERMEDIATE)
- LocalExchange (ARBITRARY)
- RemoteExchange (GATHER)
- Aggregation (INTERMEDIATE)
- LocalExchange (GATHER)
- Aggregation (PARTIAL)
Rule.Context, Rule.Result| Constructor and Description |
|---|
AddIntermediateAggregations() |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(AggregationNode aggregation,
Captures captures,
Rule.Context context) |
Pattern<AggregationNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
boolean |
isEnabled(Session session) |
public Pattern<AggregationNode> getPattern()
RulegetPattern in interface Rule<AggregationNode>public boolean isEnabled(Session session)
isEnabled in interface Rule<AggregationNode>public Rule.Result apply(AggregationNode aggregation, Captures captures, Rule.Context context)
apply in interface Rule<AggregationNode>Copyright © 2012–2019. All rights reserved.