Package io.trino.operator.aggregation
Class LongApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState
- java.lang.Object
-
- io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.trino.operator.aggregation.LongApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState
-
- All Implemented Interfaces:
BigintApproximateMostFrequent.State,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
- LongApproximateMostFrequentStateFactory
public static class LongApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState extends AbstractGroupedAccumulatorState implements BigintApproximateMostFrequent.State
-
-
Constructor Summary
Constructors Constructor Description GroupedLongApproximateMostFrequentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureCapacity(long size)ApproximateMostFrequentHistogram<Long>get()longgetEstimatedSize()voidset(ApproximateMostFrequentHistogram<Long> histogram)-
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
-
get
public ApproximateMostFrequentHistogram<Long> get()
- Specified by:
getin interfaceBigintApproximateMostFrequent.State
-
set
public void set(ApproximateMostFrequentHistogram<Long> histogram)
- Specified by:
setin interfaceBigintApproximateMostFrequent.State
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-