public class PushProjectionThroughExchange extends Object implements Rule<ProjectNode>
Project(x = e1, y = e2)
Exchange()
Source(a, b, c)
to:
Exchange()
Project(x = e1, y = e2)
Source(a, b, c)
Or if Exchange needs symbols from Source for partitioning or as hash symbol to:
Project(x, y)
Exchange()
Project(x = e1, y = e2, a)
Source(a, b, c)
To avoid looping this optimizer will not be fired if upper Project contains just symbol references.Rule.Context, Rule.Result| Constructor and Description |
|---|
PushProjectionThroughExchange() |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(ProjectNode project,
Captures captures,
Rule.Context context) |
Pattern<ProjectNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
public Pattern<ProjectNode> getPattern()
RulegetPattern in interface Rule<ProjectNode>public Rule.Result apply(ProjectNode project, Captures captures, Rule.Context context)
apply in interface Rule<ProjectNode>Copyright © 2012–2019. All rights reserved.