Class ValueAggregatorFactory
- java.lang.Object
-
- org.apache.pinot.segment.local.aggregator.ValueAggregatorFactory
-
public class ValueAggregatorFactory extends Object
TheValueAggregatorFactoryclass is the factory for all value aggregators.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldSpec.DataTypegetAggregatedValueType(AggregationFunctionType aggregationType)Returns the data type of the aggregated value for the given aggregation type.static ValueAggregatorgetValueAggregator(AggregationFunctionType aggregationType, List<ExpressionContext> arguments)Returns a new instance of value aggregator for the given aggregation type.
-
-
-
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
-
-