Class PruneScanRule
java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.drill.exec.store.StoragePluginOptimizerRule
org.apache.drill.exec.planner.logical.partition.PruneScanRule
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelOptRule.ConverterRelOptRuleOperand
-
Field Summary
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
Constructor Summary
ConstructorDescriptionPruneScanRule
(org.apache.calcite.plan.RelOptRuleOperand operand, String id, OptimizerRulesContext optimizerContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doOnMatch
(org.apache.calcite.plan.RelOptRuleCall call, org.apache.calcite.rel.core.Filter filterRel, org.apache.calcite.rel.core.Project projectRel, org.apache.calcite.rel.core.TableScan scanRel) static org.apache.calcite.plan.RelOptRule
getConvertAggScanToValuesRule
(OptimizerRulesContext optimizerRulesContext) static org.apache.calcite.plan.RelOptRule
getDirFilterOnProject
(OptimizerRulesContext optimizerRulesContext) static org.apache.calcite.plan.RelOptRule
getDirFilterOnScan
(OptimizerRulesContext optimizerRulesContext) protected OptimizerRulesContext
abstract PartitionDescriptor
getPartitionDescriptor
(PlannerSettings settings, org.apache.calcite.rel.core.TableScan scanRel) protected LogicalExpression
materializePruneExpr
(org.apache.calcite.rex.RexNode pruneCondition, PlannerSettings settings, org.apache.calcite.rel.RelNode scanRel, VectorContainer container) 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
-
Constructor Details
-
PruneScanRule
public PruneScanRule(org.apache.calcite.plan.RelOptRuleOperand operand, String id, OptimizerRulesContext optimizerContext)
-
-
Method Details
-
getDirFilterOnProject
public static org.apache.calcite.plan.RelOptRule getDirFilterOnProject(OptimizerRulesContext optimizerRulesContext) -
getDirFilterOnScan
public static org.apache.calcite.plan.RelOptRule getDirFilterOnScan(OptimizerRulesContext optimizerRulesContext) -
getConvertAggScanToValuesRule
public static org.apache.calcite.plan.RelOptRule getConvertAggScanToValuesRule(OptimizerRulesContext optimizerRulesContext) -
doOnMatch
protected void doOnMatch(org.apache.calcite.plan.RelOptRuleCall call, org.apache.calcite.rel.core.Filter filterRel, org.apache.calcite.rel.core.Project projectRel, org.apache.calcite.rel.core.TableScan scanRel) -
materializePruneExpr
protected LogicalExpression materializePruneExpr(org.apache.calcite.rex.RexNode pruneCondition, PlannerSettings settings, org.apache.calcite.rel.RelNode scanRel, VectorContainer container) -
getOptimizerRulesContext
-
getPartitionDescriptor
public abstract PartitionDescriptor getPartitionDescriptor(PlannerSettings settings, org.apache.calcite.rel.core.TableScan scanRel)
-