Class SingleMultimapAggregationState
- java.lang.Object
-
- io.trino.operator.aggregation.multimapagg.SingleMultimapAggregationState
-
- All Implemented Interfaces:
MultimapAggregationState,AccumulatorState
public class SingleMultimapAggregationState extends Object implements MultimapAggregationState
-
-
Constructor Summary
Constructors Constructor Description SingleMultimapAggregationState(Type keyType, Type valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Block key, Block value, int position)AccumulatorStatecopy()voidforEach(MultimapAggregationStateConsumer consumer)intgetEntryCount()longgetEstimatedSize()booleanisEmpty()voidreset()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.operator.aggregation.multimapagg.MultimapAggregationState
merge
-
-
-
-
Method Detail
-
add
public void add(Block key, Block value, int position)
- Specified by:
addin interfaceMultimapAggregationState
-
forEach
public void forEach(MultimapAggregationStateConsumer consumer)
- Specified by:
forEachin interfaceMultimapAggregationState
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMultimapAggregationState
-
getEntryCount
public int getEntryCount()
- Specified by:
getEntryCountin interfaceMultimapAggregationState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
reset
public void reset()
- Specified by:
resetin interfaceMultimapAggregationState
-
copy
public AccumulatorState copy()
- Specified by:
copyin interfaceAccumulatorState
-
-