Class PushPredicateIntoTableScan
- java.lang.Object
-
- io.prestosql.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.prestosql.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.Result
apply(FilterNode filterNode, Captures captures, Rule.Context context)
Pattern<FilterNode>
getPattern()
Returns a pattern to which plan nodes this rule applies.boolean
isEnabled(Session session)
static Optional<PlanNode>
pushFilterIntoTableScan(TableScanNode node, Expression predicate, boolean pruneWithPredicateExpression, Session session, TypeProvider types, PlanNodeIdAllocator idAllocator, Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer, DomainTranslator domainTranslator)
-
-
-
Constructor Detail
-
PushPredicateIntoTableScan
public PushPredicateIntoTableScan(Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer)
-
-
Method Detail
-
getPattern
public Pattern<FilterNode> getPattern()
Description copied from interface:Rule
Returns a pattern to which plan nodes this rule applies.- Specified by:
getPattern
in interfaceRule<FilterNode>
-
isEnabled
public boolean isEnabled(Session session)
- Specified by:
isEnabled
in interfaceRule<FilterNode>
-
apply
public Rule.Result apply(FilterNode filterNode, Captures captures, Rule.Context context)
- Specified by:
apply
in interfaceRule<FilterNode>
-
pushFilterIntoTableScan
public static Optional<PlanNode> pushFilterIntoTableScan(TableScanNode node, Expression predicate, boolean pruneWithPredicateExpression, Session session, TypeProvider types, PlanNodeIdAllocator idAllocator, Metadata metadata, TypeOperators typeOperators, TypeAnalyzer typeAnalyzer, DomainTranslator domainTranslator)
-
-