Class PushPredicateIntoTableScan
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.PushPredicateIntoTableScan
-
- All Implemented Interfaces:
Rule<FilterNode>
public class PushPredicateIntoTableScan extends Object implements 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
Constructors Constructor Description PushPredicateIntoTableScan(Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(FilterNode filterNode, Captures captures, Rule.Context context)Pattern<FilterNode>getPattern()Returns a pattern to which plan nodes this rule applies.booleanisEnabled(Session session)static Optional<PlanNode>pushFilterIntoTableScan(FilterNode filterNode, TableScanNode node, boolean pruneWithPredicateExpression, Session session, SymbolAllocator symbolAllocator, Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer, StatsProvider statsProvider, DomainTranslator domainTranslator)
-
-
-
Constructor Detail
-
PushPredicateIntoTableScan
public PushPredicateIntoTableScan(Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer)
-
-
Method Detail
-
getPattern
public Pattern<FilterNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<FilterNode>
-
isEnabled
public boolean isEnabled(Session session)
- Specified by:
isEnabledin interfaceRule<FilterNode>
-
apply
public Rule.Result apply(FilterNode filterNode, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<FilterNode>
-
pushFilterIntoTableScan
public static Optional<PlanNode> pushFilterIntoTableScan(FilterNode filterNode, TableScanNode node, boolean pruneWithPredicateExpression, Session session, SymbolAllocator symbolAllocator, Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer, StatsProvider statsProvider, DomainTranslator domainTranslator)
-
-