Class HyperLogLogStateFactory.SingleHyperLogLogState
- java.lang.Object
-
- io.trino.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 voidaddMemoryUsage(int value)longgetEstimatedSize()io.airlift.stats.cardinality.HyperLogLoggetHyperLogLog()voidsetHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value)
-
-
-
Method Detail
-
getHyperLogLog
public io.airlift.stats.cardinality.HyperLogLog getHyperLogLog()
- Specified by:
getHyperLogLogin interfaceHyperLogLogState
-
setHyperLogLog
public void setHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value)
- Specified by:
setHyperLogLogin interfaceHyperLogLogState
-
addMemoryUsage
public void addMemoryUsage(int value)
- Specified by:
addMemoryUsagein interfaceHyperLogLogState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-