Class MinMaxNStateFactory.SingleMinMaxNState
- java.lang.Object
-
- io.trino.operator.aggregation.state.MinMaxNStateFactory.SingleMinMaxNState
-
- All Implemented Interfaces:
MinMaxNState,AccumulatorState
- Enclosing class:
- MinMaxNStateFactory
public static class MinMaxNStateFactory.SingleMinMaxNState extends Object implements MinMaxNState
-
-
Constructor Summary
Constructors Constructor Description SingleMinMaxNState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(long memory)AccumulatorStatecopy()longgetEstimatedSize()TypedHeapgetTypedHeap()voidsetTypedHeap(TypedHeap typedHeap)
-
-
-
Method Detail
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
getTypedHeap
public TypedHeap getTypedHeap()
- Specified by:
getTypedHeapin interfaceMinMaxNState
-
setTypedHeap
public void setTypedHeap(TypedHeap typedHeap)
- Specified by:
setTypedHeapin interfaceMinMaxNState
-
addMemoryUsage
public void addMemoryUsage(long memory)
- Specified by:
addMemoryUsagein interfaceMinMaxNState
-
copy
public AccumulatorState copy()
- Specified by:
copyin interfaceAccumulatorState
-
-