Class PushDownDereferencesThroughLimit
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushDownDereferencesThroughLimit
-
- All Implemented Interfaces:
Rule<ProjectNode>
public class PushDownDereferencesThroughLimit extends Object implements Rule<ProjectNode>
Transforms:Project(D := f1(A.x), E := f2(B.x), G := f3(C)) Limit(5, tiesResolvingScheme = [B]) Source(A, B, C)to:Project(D := f1(symbol), E := f2(B.x), G := f3(C)) Limit(5, tiesResolvingScheme = [B]) Project(symbol := A.x, A, B, C) Source(A, B, C)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushDownDereferencesThroughLimit(TypeAnalyzer typeAnalyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(ProjectNode projectNode, Captures captures, Rule.Context context)Pattern<ProjectNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Constructor Detail
-
PushDownDereferencesThroughLimit
public PushDownDereferencesThroughLimit(TypeAnalyzer typeAnalyzer)
-
-
Method Detail
-
getPattern
public Pattern<ProjectNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<ProjectNode>
-
apply
public Rule.Result apply(ProjectNode projectNode, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<ProjectNode>
-
-