Class StringApproximateMostFrequentStateFactory.SingleLongApproximateMostFrequentState
- java.lang.Object
-
- io.prestosql.operator.aggregation.StringApproximateMostFrequentStateFactory.SingleLongApproximateMostFrequentState
-
- All Implemented Interfaces:
VarcharApproximateMostFrequent.State
,AccumulatorState
- Enclosing class:
- StringApproximateMostFrequentStateFactory
public static class StringApproximateMostFrequentStateFactory.SingleLongApproximateMostFrequentState extends Object implements VarcharApproximateMostFrequent.State
-
-
Constructor Summary
Constructors Constructor Description SingleLongApproximateMostFrequentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApproximateMostFrequentHistogram<io.airlift.slice.Slice>
get()
long
getEstimatedSize()
void
set(ApproximateMostFrequentHistogram<io.airlift.slice.Slice> histogram)
-
-
-
Method Detail
-
get
public ApproximateMostFrequentHistogram<io.airlift.slice.Slice> get()
- Specified by:
get
in interfaceVarcharApproximateMostFrequent.State
-
set
public void set(ApproximateMostFrequentHistogram<io.airlift.slice.Slice> histogram)
- Specified by:
set
in interfaceVarcharApproximateMostFrequent.State
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceAccumulatorState
-
-