Package io.trino.operator.aggregation
Class GroupedMapAggregationState
java.lang.Object
io.trino.operator.aggregation.AbstractMapAggregationState
io.trino.operator.aggregation.GroupedMapAggregationState
- All Implemented Interfaces:
MapAggregationState,AccumulatorState,GroupedAccumulatorState
public class GroupedMapAggregationState
extends AbstractMapAggregationState
implements GroupedAccumulatorState
-
Constructor Summary
ConstructorsConstructorDescriptionGroupedMapAggregationState(Type keyType, MethodHandle keyReadFlat, MethodHandle keyWriteFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle keyHashBlock, Type valueType, MethodHandle valueReadFlat, MethodHandle valueWriteFlat) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ValueBlock keyBlock, int keyPosition, ValueBlock valueBlock, int valuePosition) voidensureCapacity(long size) voidsetGroupId(long groupId) voidwriteAll(MapBlockBuilder out) Methods inherited from class io.trino.operator.aggregation.AbstractMapAggregationState
add, getEstimatedSize, serialize, setMaxGroupIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy, getEstimatedSizeMethods inherited from interface io.trino.operator.aggregation.MapAggregationState
merge
-
Constructor Details
-
GroupedMapAggregationState
public GroupedMapAggregationState(Type keyType, MethodHandle keyReadFlat, MethodHandle keyWriteFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle keyHashBlock, Type valueType, MethodHandle valueReadFlat, MethodHandle valueWriteFlat)
-
-
Method Details
-
setGroupId
public void setGroupId(long groupId) - Specified by:
setGroupIdin interfaceGroupedAccumulatorState
-
ensureCapacity
public void ensureCapacity(long size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
add
- Specified by:
addin interfaceMapAggregationState
-
writeAll
- Specified by:
writeAllin interfaceMapAggregationState
-