Class FunctionBuilders

java.lang.Object
com.tangosol.coherence.dslquery.function.FunctionBuilders

public final class FunctionBuilders extends Object
This class contains a number of ParameterizedBuilder implementations for the standard built-in CohQL functions.
Since:
Coherence 12.2.1
Author:
jk 2014.05.07
  • Field Details

    • BIG_DECIMAL_AVERAGE_FUNCTION_BUILDER

      public static ParameterizedBuilder<BigDecimalAverage> BIG_DECIMAL_AVERAGE_FUNCTION_BUILDER
      This builder will realize instances of the BigDecimalAverage aggregator. This builder is called as a result of the CohQL bd_avg() function.
    • BIG_DECIMAL_MAX_FUNCTION_BUILDER

      public static ParameterizedBuilder<BigDecimalMax> BIG_DECIMAL_MAX_FUNCTION_BUILDER
      This builder will realize instances of the BigDecimalMax aggregator. This builder is called as a result of the CohQL bd_max() function.
    • BIG_DECIMAL_MIN_FUNCTION_BUILDER

      public static ParameterizedBuilder<BigDecimalMin> BIG_DECIMAL_MIN_FUNCTION_BUILDER
      This builder will realize instances of the BigDecimalMin aggregator. This builder is called as a result of the CohQL bd_min() function.
    • BIG_DECIMAL_SUM_FUNCTION_BUILDER

      public static ParameterizedBuilder<BigDecimalSum> BIG_DECIMAL_SUM_FUNCTION_BUILDER
      This builder will realize instances of the BigDecimalSum aggregator. This builder is called as a result of the CohQL bd_sum() function.
    • CONCAT_FUNCTION_BUILDER

      public static ParameterizedBuilder<String> CONCAT_FUNCTION_BUILDER
      This builder will result in a concatenation of all function arguments to a single string result. This builder is called as a result of the CohQL concat() function.
      Since:
      21.06
    • COUNT_FUNCTION_BUILDER

      public static ParameterizedBuilder<Count> COUNT_FUNCTION_BUILDER
      This builder will realize instances of the Count aggregator. This builder is called as a result of the CohQL count() function.
    • DOUBLE_AVERAGE_FUNCTION_BUILDER

      public static ParameterizedBuilder<DoubleAverage> DOUBLE_AVERAGE_FUNCTION_BUILDER
      This builder will realize instances of the DoubleAverage aggregator. This builder is called as a result of the CohQL avg() function.
    • DOUBLE_MAX_FUNCTION_BUILDER

      public static ParameterizedBuilder<DoubleMax> DOUBLE_MAX_FUNCTION_BUILDER
      This builder will realize instances of the DoubleMax aggregator. This builder is called as a result of the CohQL max() function.
    • DOUBLE_MIN_FUNCTION_BUILDER

      public static ParameterizedBuilder<DoubleMin> DOUBLE_MIN_FUNCTION_BUILDER
      This builder will realize instances of the DoubleMin aggregator. This builder is called as a result of the CohQL min() function.
    • DOUBLE_SUM_FUNCTION_BUILDER

      public static ParameterizedBuilder<DoubleSum> DOUBLE_SUM_FUNCTION_BUILDER
      This builder will realize instances of the DoubleSum aggregator. This builder is called as a result of the CohQL sum() function.
    • LONG_MAX_FUNCTION_BUILDER

      public static ParameterizedBuilder<LongMax> LONG_MAX_FUNCTION_BUILDER
      This builder will realize instances of the LongMax aggregator. This builder is called as a result of the CohQL long_max() function.
    • LONG_MIN_FUNCTION_BUILDER

      public static ParameterizedBuilder<LongMin> LONG_MIN_FUNCTION_BUILDER
      This builder will realize instances of the LongMin aggregator. This builder is called as a result of the CohQL long_min() function.
    • LONG_SUM_FUNCTION_BUILDER

      public static ParameterizedBuilder<LongSum> LONG_SUM_FUNCTION_BUILDER
      This builder will realize instances of the LongSum aggregator. This builder is called as a result of the CohQL long_sum() function.
    • METHOD_CALL_FUNCTION_BUILDER

      public static ParameterizedBuilder<ReflectionExtractor> METHOD_CALL_FUNCTION_BUILDER
      This builder will realize instances of a ReflectionExtractor that will call a specific method.
    • VALUE_FUNCTION_BUILDER

      public static ParameterizedBuilder<IdentityExtractor> VALUE_FUNCTION_BUILDER
      This builder will realize instances of the IdentityExtractor aggregator. This builder is called as a result of the CohQL value() function.
    • KEY_FUNCTION_BUILDER

      public static ParameterizedBuilder<ValueExtractor> KEY_FUNCTION_BUILDER
      This 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.
  • Constructor Details

    • FunctionBuilders

      public FunctionBuilders()
  • Method Details

    • getFirstParameter

      protected static <V> V getFirstParameter(ParameterResolver resolver, ParameterList listParameters, Class<V> clzExpected)
      Extract the first parameter from the listParameters argument.
      Type Parameters:
      V - the parameter type
      Parameters:
      resolver - the ParameterResolver for resolving named Parameters
      listParameters - an optional ParameterList (may be null) to be used for realizing the instance, eg: used as constructor parameters
      clzExpected - the expected type of the first parameter
      Returns:
      the first parameter from the listParameters argument
      Throws:
      AssertionException - if the listParameters list is empty or if the first parameter resolved from the list is null or not of the expected type.