Class PushOffsetThroughProject
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushOffsetThroughProject
-
- All Implemented Interfaces:
Rule<OffsetNode>
public class PushOffsetThroughProject extends Object implements Rule<OffsetNode>
Transforms:- Offset - Project (non identity)Into:- Project (non identity) - Offset
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushOffsetThroughProject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(OffsetNode parent, Captures captures, Rule.Context context)Pattern<OffsetNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Method Detail
-
getPattern
public Pattern<OffsetNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<OffsetNode>
-
apply
public Rule.Result apply(OffsetNode parent, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<OffsetNode>
-
-