Class PushSampleIntoTableScan
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushSampleIntoTableScan
-
- All Implemented Interfaces:
Rule<SampleNode>
public class PushSampleIntoTableScan extends Object implements Rule<SampleNode>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description PushSampleIntoTableScan(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(SampleNode sample, Captures captures, Rule.Context context)Pattern<SampleNode>getPattern()Returns a pattern to which plan nodes this rule applies.booleanisEnabled(Session session)
-
-
-
Constructor Detail
-
PushSampleIntoTableScan
public PushSampleIntoTableScan(Metadata metadata)
-
-
Method Detail
-
getPattern
public Pattern<SampleNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<SampleNode>
-
isEnabled
public boolean isEnabled(Session session)
- Specified by:
isEnabledin interfaceRule<SampleNode>
-
apply
public Rule.Result apply(SampleNode sample, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<SampleNode>
-
-