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 Constructor Description GroupedLongApproximateMostFrequentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureCapacity(long size)ApproximateMostFrequentHistogram<io.airlift.slice.Slice>get()longgetEstimatedSize()voidset(ApproximateMostFrequentHistogram<io.airlift.slice.Slice> histogram)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
-
-
-
Method Detail
-
get
public ApproximateMostFrequentHistogram<io.airlift.slice.Slice> get()
- Specified by:
getin interfaceVarcharApproximateMostFrequent.State
-
set
public void set(ApproximateMostFrequentHistogram<io.airlift.slice.Slice> histogram)
- Specified by:
setin interfaceVarcharApproximateMostFrequent.State
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-