Class KeyValuePairsStateFactory.SingleState
- java.lang.Object
-
- io.trino.operator.aggregation.state.KeyValuePairsStateFactory.SingleState
-
- All Implemented Interfaces:
KeyValuePairsState,AccumulatorState
- Enclosing class:
- KeyValuePairsStateFactory
public static class KeyValuePairsStateFactory.SingleState extends Object implements KeyValuePairsState
-
-
Constructor Summary
Constructors Constructor Description SingleState(Type keyType, Type valueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(long memory)AccumulatorStatecopy()KeyValuePairsget()longgetEstimatedSize()TypegetKeyType()TypegetValueType()voidset(KeyValuePairs value)
-
-
-
Method Detail
-
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
-
copy
public AccumulatorState copy()
- Specified by:
copyin interfaceAccumulatorState
-
-