Class KeyValuePairsStateFactory.SingleState
- java.lang.Object
-
- io.prestosql.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 void
addMemoryUsage(long memory)
KeyValuePairs
get()
long
getEstimatedSize()
Type
getKeyType()
Type
getValueType()
void
set(KeyValuePairs value)
-
-
-
Method Detail
-
get
public KeyValuePairs get()
- Specified by:
get
in interfaceKeyValuePairsState
-
set
public void set(KeyValuePairs value)
- Specified by:
set
in interfaceKeyValuePairsState
-
addMemoryUsage
public void addMemoryUsage(long memory)
- Specified by:
addMemoryUsage
in interfaceKeyValuePairsState
-
getKeyType
public Type getKeyType()
- Specified by:
getKeyType
in interfaceKeyValuePairsState
-
getValueType
public Type getValueType()
- Specified by:
getValueType
in interfaceKeyValuePairsState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceAccumulatorState
-
-