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