Class PushLimitIntoTableScan
- java.lang.Object
-
- io.prestosql.sql.planner.iterative.rule.PushLimitIntoTableScan
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushLimitIntoTableScan(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Result
apply(LimitNode limit, Captures captures, Rule.Context context)
Pattern<LimitNode>
getPattern()
Returns a pattern to which plan nodes this rule applies.boolean
isEnabled(Session session)
-
-
-
Constructor Detail
-
PushLimitIntoTableScan
public PushLimitIntoTableScan(Metadata metadata)
-
-
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>
-
isEnabled
public boolean isEnabled(Session session)
-
apply
public Rule.Result apply(LimitNode limit, Captures captures, Rule.Context context)
-
-