Class PushPredicateIntoTableScan
java.lang.Object
io.trino.sql.planner.iterative.rule.PushPredicateIntoTableScan
- All Implemented Interfaces:
Rule<FilterNode>
These rules should not be run after AddExchanges so as not to overwrite the TableLayout
chosen by AddExchanges
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result -
Constructor Summary
ConstructorsConstructorDescriptionPushPredicateIntoTableScan(PlannerContext plannerContext, boolean pruneWithPredicateExpression) -
Method Summary
Modifier and TypeMethodDescriptionapply(FilterNode filterNode, Captures captures, Rule.Context context) static TupleDomain<ColumnHandle> computeEnforced(TupleDomain<ColumnHandle> predicate, TupleDomain<ColumnHandle> unenforced) Returns a pattern to which plan nodes this rule applies.booleanbooleanpushFilterIntoTableScan(FilterNode filterNode, TableScanNode node, boolean pruneWithPredicateExpression, Session session, PlannerContext plannerContext, StatsProvider statsProvider)
-
Constructor Details
-
PushPredicateIntoTableScan
public PushPredicateIntoTableScan(PlannerContext plannerContext, boolean pruneWithPredicateExpression)
-
-
Method Details
-
getPattern
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<FilterNode>
-
isEnabled
- Specified by:
isEnabledin interfaceRule<FilterNode>
-
apply
- Specified by:
applyin interfaceRule<FilterNode>
-
pushFilterIntoTableScan
public static Optional<PlanNode> pushFilterIntoTableScan(FilterNode filterNode, TableScanNode node, boolean pruneWithPredicateExpression, Session session, PlannerContext plannerContext, StatsProvider statsProvider) -
computeEnforced
public static TupleDomain<ColumnHandle> computeEnforced(TupleDomain<ColumnHandle> predicate, TupleDomain<ColumnHandle> unenforced) -
getPruneWithPredicateExpression
public boolean getPruneWithPredicateExpression()
-