Package io.trino.operator.aggregation
Class StringApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState
java.lang.Object
io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
io.trino.operator.aggregation.StringApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState
- All Implemented Interfaces:
VarcharApproximateMostFrequent.State,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
StringApproximateMostFrequentStateFactory
public static class StringApproximateMostFrequentStateFactory.GroupedLongApproximateMostFrequentState
extends AbstractGroupedAccumulatorState
implements VarcharApproximateMostFrequent.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidensureCapacity(int size) ApproximateMostFrequentHistogram<io.airlift.slice.Slice> get()longvoidset(ApproximateMostFrequentHistogram<io.airlift.slice.Slice> 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 interfaceVarcharApproximateMostFrequent.State
-
set
- Specified by:
setin interfaceVarcharApproximateMostFrequent.State
-
ensureCapacity
public void ensureCapacity(int size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-