Class HyperLogLogStateFactory.GroupedHyperLogLogState
- java.lang.Object
-
- io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.trino.operator.aggregation.state.HyperLogLogStateFactory.GroupedHyperLogLogState
-
- All Implemented Interfaces:
HyperLogLogState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
- HyperLogLogStateFactory
public static class HyperLogLogStateFactory.GroupedHyperLogLogState extends AbstractGroupedAccumulatorState implements HyperLogLogState
-
-
Constructor Summary
Constructors Constructor Description GroupedHyperLogLogState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(int value)voidensureCapacity(long size)longgetEstimatedSize()io.airlift.stats.cardinality.HyperLogLoggetHyperLogLog()voidsetHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
-
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
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
-
-