Class KeyValuePairsStateFactory.GroupedState
- java.lang.Object
-
- io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.trino.operator.aggregation.state.KeyValuePairsStateFactory.GroupedState
-
- All Implemented Interfaces:
KeyValuePairsState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
- KeyValuePairsStateFactory
public static class KeyValuePairsStateFactory.GroupedState extends AbstractGroupedAccumulatorState implements KeyValuePairsState
-
-
Constructor Summary
Constructors Constructor Description GroupedState(Type keyType, Type valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(long memory)voidensureCapacity(long size)KeyValuePairsget()longgetEstimatedSize()TypegetKeyType()TypegetValueType()voidset(KeyValuePairs value)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
-
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
get
public KeyValuePairs get()
- Specified by:
getin interfaceKeyValuePairsState
-
set
public void set(KeyValuePairs value)
- Specified by:
setin interfaceKeyValuePairsState
-
addMemoryUsage
public void addMemoryUsage(long memory)
- Specified by:
addMemoryUsagein interfaceKeyValuePairsState
-
getKeyType
public Type getKeyType()
- Specified by:
getKeyTypein interfaceKeyValuePairsState
-
getValueType
public Type getValueType()
- Specified by:
getValueTypein interfaceKeyValuePairsState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-