Package org.apache.calcite.rel.rules
Class ProjectTableScanRule
- java.lang.Object
-
- org.apache.calcite.plan.RelOptRule
-
- org.apache.calcite.rel.rules.ProjectTableScanRule
-
public abstract class ProjectTableScanRule extends RelOptRule
Planner rule that converts aProject
on aTableScan
of aProjectableFilterableTable
to aBindables.BindableTableScan
.The
INTERPRETER
variant allows an interveningEnumerableInterpreter
.- See Also:
FilterTableScanRule
-
-
Field Summary
Fields Modifier and Type Field Description static ProjectTableScanRule
INSTANCE
Rule that matches Project on TableScan.static ProjectTableScanRule
INTERPRETER
Rule that matches Project 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 Constructor Description ProjectTableScanRule(RelOptRuleOperand operand, RelBuilderFactory relBuilderFactory, java.lang.String description)
Creates a ProjectTableScanRule.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply(RelOptRuleCall call, Project project, TableScan scan)
protected 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 ProjectTableScanRule INSTANCE
Rule that matches Project on TableScan.
-
INTERPRETER
public static final ProjectTableScanRule INTERPRETER
Rule that matches Project on EnumerableInterpreter on TableScan.
-
-
Constructor Detail
-
ProjectTableScanRule
public ProjectTableScanRule(RelOptRuleOperand operand, RelBuilderFactory relBuilderFactory, java.lang.String description)
Creates a ProjectTableScanRule.
-
-
Method Detail
-
test
protected static boolean test(TableScan scan)
-
apply
protected void apply(RelOptRuleCall call, Project project, TableScan scan)
-
-