Class AggregationUtils.Accumulator
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.utils.AggregationUtils.Accumulator
-
- Enclosing class:
- AggregationUtils
public static class AggregationUtils.Accumulator extends Object
Accumulator class which accumulates the aggregated results into the group sets if any
-
-
Field Summary
Fields Modifier and Type Field Description protected DataSchema.ColumnDataType_dataTypeprotected int_inputRefprotected Object_literalprotected AggregationUtils.Merger_mergerprotected Map<Key,Object>_resultsstatic Map<String,Function<DataSchema.ColumnDataType,AggregationUtils.Merger>>MERGERS
-
Constructor Summary
Constructors Constructor Description Accumulator(RexExpression.FunctionCall aggCall, Map<String,Function<DataSchema.ColumnDataType,AggregationUtils.Merger>> merger, String functionName, DataSchema inputSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccumulate(Key key, Object[] row)DataSchema.ColumnDataTypegetDataType()AggregationUtils.MergergetMerger()Map<Key,Object>getResults()
-
-
-
Field Detail
-
MERGERS
public static final Map<String,Function<DataSchema.ColumnDataType,AggregationUtils.Merger>> MERGERS
-
_inputRef
protected final int _inputRef
-
_literal
protected final Object _literal
-
_merger
protected final AggregationUtils.Merger _merger
-
_dataType
protected final DataSchema.ColumnDataType _dataType
-
-
Constructor Detail
-
Accumulator
public Accumulator(RexExpression.FunctionCall aggCall, Map<String,Function<DataSchema.ColumnDataType,AggregationUtils.Merger>> merger, String functionName, DataSchema inputSchema)
-
-
Method Detail
-
getMerger
public AggregationUtils.Merger getMerger()
-
getDataType
public DataSchema.ColumnDataType getDataType()
-
-