public final class FunctionBuilders extends Object
ParameterizedBuilder
implementations for the standard built-in CohQL functions.| Constructor and Description |
|---|
FunctionBuilders() |
| Modifier and Type | Method and Description |
|---|---|
protected static <V> V |
getFirstParameter(com.tangosol.config.expression.ParameterResolver resolver,
ParameterList listParameters,
Class<V> clzExpected)
Extract the first parameter from the listParameters argument.
|
public static ParameterizedBuilder<BigDecimalAverage> BIG_DECIMAL_AVERAGE_FUNCTION_BUILDER
BigDecimalAverage aggregator.
This builder is called as a result of the CohQL bd_avg() function.public static ParameterizedBuilder<BigDecimalMax> BIG_DECIMAL_MAX_FUNCTION_BUILDER
BigDecimalMax aggregator.
This builder is called as a result of the CohQL bd_max() function.public static ParameterizedBuilder<BigDecimalMin> BIG_DECIMAL_MIN_FUNCTION_BUILDER
BigDecimalMin aggregator.
This builder is called as a result of the CohQL bd_min() function.public static ParameterizedBuilder<BigDecimalSum> BIG_DECIMAL_SUM_FUNCTION_BUILDER
BigDecimalSum aggregator.
This builder is called as a result of the CohQL bd_sum() function.public static ParameterizedBuilder<Count> COUNT_FUNCTION_BUILDER
Count aggregator.
This builder is called as a result of the CohQL count() function.public static ParameterizedBuilder<DoubleAverage> DOUBLE_AVERAGE_FUNCTION_BUILDER
DoubleAverage aggregator.
This builder is called as a result of the CohQL avg() function.public static ParameterizedBuilder<DoubleMax> DOUBLE_MAX_FUNCTION_BUILDER
DoubleMax aggregator.
This builder is called as a result of the CohQL max() function.public static ParameterizedBuilder<DoubleMin> DOUBLE_MIN_FUNCTION_BUILDER
DoubleMin aggregator.
This builder is called as a result of the CohQL min() function.public static ParameterizedBuilder<DoubleSum> DOUBLE_SUM_FUNCTION_BUILDER
DoubleSum aggregator.
This builder is called as a result of the CohQL sum() function.public static ParameterizedBuilder<LongMax> LONG_MAX_FUNCTION_BUILDER
LongMax aggregator.
This builder is called as a result of the CohQL long_max() function.public static ParameterizedBuilder<LongMin> LONG_MIN_FUNCTION_BUILDER
LongMin aggregator.
This builder is called as a result of the CohQL long_min() function.public static ParameterizedBuilder<LongSum> LONG_SUM_FUNCTION_BUILDER
LongSum aggregator.
This builder is called as a result of the CohQL long_sum() function.public static ParameterizedBuilder<ReflectionExtractor> METHOD_CALL_FUNCTION_BUILDER
ReflectionExtractor that will call
a specific method.public static ParameterizedBuilder<IdentityExtractor> VALUE_FUNCTION_BUILDER
IdentityExtractor aggregator.
This builder is called as a result of the CohQL value() function.public static ParameterizedBuilder<ValueExtractor> KEY_FUNCTION_BUILDER
ParameterizedBuilder handles the key() function.
The type of ValueExtractor realized will depend on
the type of the first element in the args array passed to the
realize method.
This builder is called as a result of the CohQL key() function.protected static <V> V getFirstParameter(com.tangosol.config.expression.ParameterResolver resolver,
ParameterList listParameters,
Class<V> clzExpected)
V - the parameter typeresolver - the ParameterResolver for resolving named ParameterslistParameters - an optional ParameterList (may be null) to be used
for realizing the instance, eg: used as constructor parametersclzExpected - the expected type of the first parameterAssertionException - if the listParameters list is empty or if the
first parameter resolved from the list is null or not of the expected type.