Package org.apache.calcite.rel.rules
Class FilterTableScanRule
- java.lang.Object
-
- org.apache.calcite.plan.RelOptRule
-
- org.apache.calcite.rel.rules.FilterTableScanRule
-
public abstract class FilterTableScanRule extends RelOptRule
Planner rule that converts aFilter
on aTableScan
of aFilterableTable
or aProjectableFilterableTable
to aBindables.BindableTableScan
.The
INTERPRETER
variant allows an interveningEnumerableInterpreter
.- See Also:
ProjectTableScanRule
-
-
Field Summary
Fields Modifier and Type Field Description static FilterTableScanRule
INSTANCE
Rule that matches Filter on TableScan.static FilterTableScanRule
INTERPRETER
Rule that matches Filter on EnumerableInterpreter on TableScan.static com.google.common.base.Predicate<TableScan>
PREDICATE
Deprecated.-
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FilterTableScanRule(RelOptRuleOperand operand, java.lang.String description)
Deprecated.protected
FilterTableScanRule(RelOptRuleOperand operand, RelBuilderFactory relBuilderFactory, java.lang.String description)
Creates a FilterTableScanRule.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply(RelOptRuleCall call, Filter filter, TableScan scan)
static boolean
test(TableScan scan)
-
Methods inherited from class org.apache.calcite.plan.RelOptRule
any, convert, convert, convertList, convertOperand, convertOperand, equals, equals, getOperand, getOperands, getOutConvention, getOutTrait, hashCode, matches, none, onMatch, operand, operand, operand, operand, operand, operandJ, operandJ, some, toString, unordered
-
-
-
-
Field Detail
-
PREDICATE
@Deprecated public static final com.google.common.base.Predicate<TableScan> PREDICATE
Deprecated.
-
INSTANCE
public static final FilterTableScanRule INSTANCE
Rule that matches Filter on TableScan.
-
INTERPRETER
public static final FilterTableScanRule INTERPRETER
Rule that matches Filter on EnumerableInterpreter on TableScan.
-
-
Constructor Detail
-
FilterTableScanRule
@Deprecated protected FilterTableScanRule(RelOptRuleOperand operand, java.lang.String description)
Deprecated.
-
FilterTableScanRule
protected FilterTableScanRule(RelOptRuleOperand operand, RelBuilderFactory relBuilderFactory, java.lang.String description)
Creates a FilterTableScanRule.
-
-
Method Detail
-
test
public static boolean test(TableScan scan)
-
apply
protected void apply(RelOptRuleCall call, Filter filter, TableScan scan)
-
-