@Value.Immutable public static interface AggregateReduceFunctionsRule.Config extends RelRule.Config
| Modifier and Type | Field and Description |
|---|---|
static AggregateReduceFunctionsRule.Config |
DEFAULT |
static Set<SqlKind> |
DEFAULT_FUNCTIONS_TO_REDUCE |
| Modifier and Type | Method and Description |
|---|---|
default Set<SqlKind> |
actualFunctionsToReduce()
Returns the validated set of functions to reduce, or the default set
if not specified.
|
default Predicate<AggregateCall> |
extraCondition()
A test that must pass before attempting to reduce any aggregate function.
|
@Nullable Set<SqlKind> |
functionsToReduce()
The set of aggregate function types to try to reduce.
|
default AggregateReduceFunctionsRule |
toRule()
Creates a rule that uses this configuration.
|
AggregateReduceFunctionsRule.Config |
withExtraCondition(Predicate<AggregateCall> test)
Sets
extraCondition(). |
AggregateReduceFunctionsRule.Config |
withFunctionsToReduce(@Nullable Iterable<SqlKind> functionSet)
Sets
functionsToReduce(). |
default AggregateReduceFunctionsRule.Config |
withFunctionsToReduce(@Nullable Set<SqlKind> functionSet) |
default AggregateReduceFunctionsRule.Config |
withOperandFor(Class<? extends Aggregate> aggregateClass)
Defines an operand tree for the given classes.
|
as, description, operandSupplier, relBuilderFactory, withDescription, withOperandSupplier, withRelBuilderFactorystatic final AggregateReduceFunctionsRule.Config DEFAULT
default AggregateReduceFunctionsRule toRule()
RelRule.ConfigtoRule in interface RelRule.Config@Nullable Set<SqlKind> functionsToReduce()
Any aggregate function whose type is omitted from this set, OR which
does not pass the extraCondition(), will be ignored.
@Value.Default default Predicate<AggregateCall> extraCondition()
Any aggegate function which does not pass, OR whose type is omitted
from functionsToReduce(), will be ignored. The default predicate
always passes.
AggregateReduceFunctionsRule.Config withFunctionsToReduce(@Nullable Iterable<SqlKind> functionSet)
functionsToReduce().default AggregateReduceFunctionsRule.Config withFunctionsToReduce(@Nullable Set<SqlKind> functionSet)
AggregateReduceFunctionsRule.Config withExtraCondition(Predicate<AggregateCall> test)
extraCondition().default Set<SqlKind> actualFunctionsToReduce()
default AggregateReduceFunctionsRule.Config withOperandFor(Class<? extends Aggregate> aggregateClass)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.