Package org.apache.calcite.rel.rules
Interface AggregateReduceFunctionsRule.Config
- All Superinterfaces:
RelRule.Config
- Enclosing class:
AggregateReduceFunctionsRule
Rule configuration.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the validated set of functions to reduce, or the default set if not specified.default Predicate<AggregateCall>
A test that must pass before attempting to reduce any aggregate function.The set of aggregate function types to try to reduce.default AggregateReduceFunctionsRule
toRule()
Creates a rule that uses this configuration.SetsextraCondition()
.withFunctionsToReduce
(@Nullable Iterable<SqlKind> functionSet) SetsfunctionsToReduce()
.withFunctionsToReduce
(@Nullable Set<SqlKind> functionSet) withOperandFor
(Class<? extends Aggregate> aggregateClass) Defines an operand tree for the given classes.Methods inherited from interface org.apache.calcite.plan.RelRule.Config
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactory
-
Field Details
-
DEFAULT
-
DEFAULT_FUNCTIONS_TO_REDUCE
-
-
Method Details
-
toRule
Description copied from interface:RelRule.Config
Creates a rule that uses this configuration. Sub-class must override.- Specified by:
toRule
in interfaceRelRule.Config
-
functionsToReduce
The set of aggregate function types to try to reduce.Any aggregate function whose type is omitted from this set, OR which does not pass the
extraCondition()
, will be ignored. -
extraCondition
A test that must pass before attempting to reduce any aggregate function.Any aggegate function which does not pass, OR whose type is omitted from
functionsToReduce()
, will be ignored. The default predicate always passes. -
withFunctionsToReduce
SetsfunctionsToReduce()
. -
withFunctionsToReduce
default AggregateReduceFunctionsRule.Config withFunctionsToReduce(@Nullable Set<SqlKind> functionSet) -
withExtraCondition
SetsextraCondition()
. -
actualFunctionsToReduce
Returns the validated set of functions to reduce, or the default set if not specified. -
withOperandFor
default AggregateReduceFunctionsRule.Config withOperandFor(Class<? extends Aggregate> aggregateClass) Defines an operand tree for the given classes.
-