Class PushLimitThroughOuterJoin
- java.lang.Object
-
- io.prestosql.sql.planner.iterative.rule.PushLimitThroughOuterJoin
-
public class PushLimitThroughOuterJoin extends Object implements Rule<LimitNode>
Transforms:- Limit - Join - left source - right source
Into:- Limit - Join - Limit (present if Join is left or outer) - left source - Limit (present if Join is right or outer) - right source
Applies to LimitNode without ties only to avoid optimizer loop.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.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.Result
apply(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:Rule
Returns a pattern to which plan nodes this rule applies.- Specified by:
getPattern
in interfaceRule<LimitNode>
-
apply
public Rule.Result apply(LimitNode parent, Captures captures, Rule.Context context)
-
-