Class HyperLogLogStateFactory.SingleHyperLogLogState
- java.lang.Object
-
- io.prestosql.operator.aggregation.state.HyperLogLogStateFactory.SingleHyperLogLogState
-
- All Implemented Interfaces:
HyperLogLogState
,AccumulatorState
- Enclosing class:
- HyperLogLogStateFactory
public static class HyperLogLogStateFactory.SingleHyperLogLogState extends Object implements HyperLogLogState
-
-
Constructor Summary
Constructors Constructor Description SingleHyperLogLogState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMemoryUsage(int value)
long
getEstimatedSize()
io.airlift.stats.cardinality.HyperLogLog
getHyperLogLog()
void
setHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value)
-
-
-
Method Detail
-
getHyperLogLog
public io.airlift.stats.cardinality.HyperLogLog getHyperLogLog()
- Specified by:
getHyperLogLog
in interfaceHyperLogLogState
-
setHyperLogLog
public void setHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value)
- Specified by:
setHyperLogLog
in interfaceHyperLogLogState
-
addMemoryUsage
public void addMemoryUsage(int value)
- Specified by:
addMemoryUsage
in interfaceHyperLogLogState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSize
in interfaceAccumulatorState
-
-