Package org.apache.calcite.rel.rules
Class PruneEmptyRules.PruneEmptyRule
java.lang.Object
org.apache.calcite.plan.RelOptRule
org.apache.calcite.plan.RelRule<PruneEmptyRules.PruneEmptyRule.Config>
org.apache.calcite.rel.rules.PruneEmptyRules.PruneEmptyRule
- All Implemented Interfaces:
SubstitutionRule
,TransformationRule
- Direct Known Subclasses:
PruneEmptyRules.RemoveEmptySingleRule
- Enclosing class:
PruneEmptyRules
protected abstract static class PruneEmptyRules.PruneEmptyRule
extends RelRule<PruneEmptyRules.PruneEmptyRule.Config>
implements SubstitutionRule
Abstract prune empty rule that implements SubstitutionRule interface.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Rule configuration.Nested classes/interfaces inherited from class org.apache.calcite.plan.RelRule
RelRule.Done, RelRule.MatchHandler<R extends RelOptRule>, RelRule.OperandBuilder, RelRule.OperandDetailBuilder<R extends RelNode>, RelRule.OperandTransform
Nested classes/interfaces inherited from class org.apache.calcite.plan.RelOptRule
RelOptRule.ConverterRelOptRuleOperand
-
Field Summary
Fields inherited from class org.apache.calcite.plan.RelOptRule
description, operands, relBuilderFactory
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the planner should automatically prune old node when there is at least 1 equivalent rel generated by the rule.Methods inherited from class org.apache.calcite.plan.RelOptRule
any, convert, convert, 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
-
PruneEmptyRule
-
-
Method Details
-
autoPruneOld
public boolean autoPruneOld()Description copied from interface:SubstitutionRule
Whether the planner should automatically prune old node when there is at least 1 equivalent rel generated by the rule.Default is false, the user needs to prune the old node manually in the rule.
- Specified by:
autoPruneOld
in interfaceSubstitutionRule
-