Package org.apache.calcite.rel.rules
Interface ReduceExpressionsRule.Config
- All Superinterfaces:
- RelRule.Config
- All Known Subinterfaces:
- ReduceExpressionsRule.CalcReduceExpressionsRule.CalcReduceExpressionsRuleConfig,- ReduceExpressionsRule.FilterReduceExpressionsRule.FilterReduceExpressionsRuleConfig,- ReduceExpressionsRule.JoinReduceExpressionsRule.JoinReduceExpressionsRuleConfig,- ReduceExpressionsRule.ProjectReduceExpressionsRule.ProjectReduceExpressionsRuleConfig,- ReduceExpressionsRule.WindowReduceExpressionsRule.WindowReduceExpressionsRuleConfig
- Enclosing class:
- ReduceExpressionsRule<C extends ReduceExpressionsRule.Config>
Rule configuration.
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleanWhether to add a CAST when a nullable expression reduces to a NOT NULL literal.toRule()Creates a rule that uses this configuration.default booleanWhether to treatdynamic functionsas constants.withMatchNullability(boolean matchNullability) SetsmatchNullability().default ReduceExpressionsRule.ConfigwithOperandFor(Class<? extends RelNode> relClass) Defines an operand tree for the given classes.withTreatDynamicCallsAsConstant(boolean treatDynamicCallsAsConstant) Methods inherited from interface org.apache.calcite.plan.RelRule.Configas, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactory
- 
Method Details- 
toRuleReduceExpressionsRule<?> toRule()Description copied from interface:RelRule.ConfigCreates a rule that uses this configuration. Sub-class must override.- Specified by:
- toRulein interface- RelRule.Config
 
- 
matchNullability@Default default boolean matchNullability()Whether to add a CAST when a nullable expression reduces to a NOT NULL literal.
- 
withMatchNullabilitySetsmatchNullability().
- 
treatDynamicCallsAsConstant@Default default boolean treatDynamicCallsAsConstant()Whether to treatdynamic functionsas constants.When false (the default), calls to dynamic functions (e.g. USER) are not reduced. When true, calls to dynamic functions are treated as a constant, and reduced.
- 
withTreatDynamicCallsAsConstant
- 
withOperandForDefines an operand tree for the given classes.
 
-