Class ValueAggregatorFactory


  • public class ValueAggregatorFactory
    extends Object
    The ValueAggregatorFactory class is the factory for all value aggregators.
    • Method Detail

      • getValueAggregator

        public static ValueAggregator getValueAggregator​(AggregationFunctionType aggregationType,
                                                         List<ExpressionContext> arguments)
        Returns a new instance of value aggregator for the given aggregation type.
        Parameters:
        aggregationType - Aggregation type
        Returns:
        Value aggregator
      • getAggregatedValueType

        public static FieldSpec.DataType getAggregatedValueType​(AggregationFunctionType aggregationType)
        Returns the data type of the aggregated value for the given aggregation type.
        Parameters:
        aggregationType - Aggregation type
        Returns:
        Data type of the aggregated value