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 Summary
Modifier and TypeMethodDescriptiondefault boolean
Whether to add a CAST when a nullable expression reduces to a NOT NULL literal.toRule()
Creates a rule that uses this configuration.default boolean
Whether to treatdynamic functions
as constants.withMatchNullability
(boolean matchNullability) SetsmatchNullability()
.default ReduceExpressionsRule.Config
withOperandFor
(Class<? extends RelNode> relClass) Defines an operand tree for the given classes.withTreatDynamicCallsAsConstant
(boolean treatDynamicCallsAsConstant) Methods inherited from interface org.apache.calcite.plan.RelRule.Config
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactory
-
Method Details
-
toRule
ReduceExpressionsRule<?> toRule()Description copied from interface:RelRule.Config
Creates a rule that uses this configuration. Sub-class must override.- Specified by:
toRule
in interfaceRelRule.Config
-
matchNullability
@Default default boolean matchNullability()Whether to add a CAST when a nullable expression reduces to a NOT NULL literal. -
withMatchNullability
SetsmatchNullability()
. -
treatDynamicCallsAsConstant
@Default default boolean treatDynamicCallsAsConstant()Whether to treatdynamic functions
as 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
-
withOperandFor
Defines an operand tree for the given classes.
-