Class PushLimitThroughOuterJoin
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushLimitThroughOuterJoin
-
public class PushLimitThroughOuterJoin extends Object implements Rule<LimitNode>
Transforms:- Limit - Join - left source - right sourceInto:- Limit - Join - Limit (present if Join is left or outer) - left source - Limit (present if Join is right or outer) - right sourceApplies to LimitNode without ties only to avoid optimizer loop.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushLimitThroughOuterJoin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(LimitNode parent, Captures captures, Rule.Context context)Pattern<LimitNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Method Detail
-
getPattern
public Pattern<LimitNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<LimitNode>
-
apply
public Rule.Result apply(LimitNode parent, Captures captures, Rule.Context context)
-
-