public static interface ReduceExpressionsRule.Config extends RelRule.Config
| Modifier and Type | Method and Description |
|---|---|
default boolean |
matchNullability()
Whether to add a CAST when a nullable expression
reduces to a NOT NULL literal.
|
ReduceExpressionsRule<?> |
toRule()
Creates a rule that uses this configuration.
|
default boolean |
treatDynamicCallsAsConstant()
Whether to treat
dynamic functions as constants. |
ReduceExpressionsRule.Config |
withMatchNullability(boolean matchNullability)
Sets
matchNullability(). |
default ReduceExpressionsRule.Config |
withOperandFor(Class<? extends RelNode> relClass)
Defines an operand tree for the given classes.
|
ReduceExpressionsRule.Config |
withTreatDynamicCallsAsConstant(boolean treatDynamicCallsAsConstant)
|
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactoryReduceExpressionsRule<?> toRule()
RelRule.ConfigtoRule in interface RelRule.Config@Value.Default default boolean matchNullability()
ReduceExpressionsRule.Config withMatchNullability(boolean matchNullability)
matchNullability().@Value.Default default boolean treatDynamicCallsAsConstant()
dynamic 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.
ReduceExpressionsRule.Config withTreatDynamicCallsAsConstant(boolean treatDynamicCallsAsConstant)
default ReduceExpressionsRule.Config withOperandFor(Class<? extends RelNode> relClass)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.