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 -
Method Summary
Modifier and TypeMethodDescriptionvoidensureCapacity(int size) get()longvoidset(ApproximateMostFrequentHistogram<Long> histogram) Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Constructor Details
-
GroupedLongApproximateMostFrequentState
public GroupedLongApproximateMostFrequentState()
-
-
Method Details
-
get
- Specified by:
getin interfaceBigintApproximateMostFrequent.State
-
set
- Specified by:
setin interfaceBigintApproximateMostFrequent.State
-
ensureCapacity
public void ensureCapacity(int size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-