public class PushPredicateIntoTableScan extends Object implements Rule<FilterNode>
Rule.Context, Rule.Result| Constructor and Description |
|---|
PushPredicateIntoTableScan(Metadata metadata,
TypeAnalyzer typeAnalyzer) |
| Modifier and Type | Method and Description |
|---|---|
Rule.Result |
apply(FilterNode filterNode,
Captures captures,
Rule.Context context) |
Pattern<FilterNode> |
getPattern()
Returns a pattern to which plan nodes this rule applies.
|
static Optional<PlanNode> |
pushFilterIntoTableScan(TableScanNode node,
Expression predicate,
boolean pruneWithPredicateExpression,
Session session,
TypeProvider types,
PlanNodeIdAllocator idAllocator,
Metadata metadata,
TypeAnalyzer typeAnalyzer,
DomainTranslator domainTranslator) |
public PushPredicateIntoTableScan(Metadata metadata, TypeAnalyzer typeAnalyzer)
public Pattern<FilterNode> getPattern()
RulegetPattern in interface Rule<FilterNode>public Rule.Result apply(FilterNode filterNode, Captures captures, Rule.Context context)
apply in interface Rule<FilterNode>public static Optional<PlanNode> pushFilterIntoTableScan(TableScanNode node, Expression predicate, boolean pruneWithPredicateExpression, Session session, TypeProvider types, PlanNodeIdAllocator idAllocator, Metadata metadata, TypeAnalyzer typeAnalyzer, DomainTranslator domainTranslator)
Copyright © 2012–2019. All rights reserved.