Package io.trino.operator.aggregation
Class AbstractMapAggregationState
java.lang.Object
io.trino.operator.aggregation.AbstractMapAggregationState
- All Implemented Interfaces:
MapAggregationState,AccumulatorState
- Direct Known Subclasses:
GroupedMapAggregationState,SingleMapAggregationState
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapAggregationState(Type keyType, MethodHandle keyReadFlat, MethodHandle keyWriteFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle keyHashBlock, Type valueType, MethodHandle valueReadFlat, MethodHandle valueWriteFlat, boolean grouped) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(int groupId, ValueBlock keyBlock, int keyPosition, ValueBlock valueBlock, int valuePosition) longprotected voidserialize(int groupId, MapBlockBuilder out) voidsetMaxGroupId(int maxGroupId) Methods 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
copyMethods inherited from interface io.trino.operator.aggregation.MapAggregationState
add, merge, writeAll
-
Constructor Details
-
AbstractMapAggregationState
public AbstractMapAggregationState(Type keyType, MethodHandle keyReadFlat, MethodHandle keyWriteFlat, MethodHandle hashFlat, MethodHandle distinctFlatBlock, MethodHandle keyHashBlock, Type valueType, MethodHandle valueReadFlat, MethodHandle valueWriteFlat, boolean grouped) -
AbstractMapAggregationState
-
-
Method Details
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
setMaxGroupId
public void setMaxGroupId(int maxGroupId) -
serialize
-
add
protected void add(int groupId, ValueBlock keyBlock, int keyPosition, ValueBlock valueBlock, int valuePosition)
-