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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int value) voidensureCapacity(long size) longio.airlift.stats.cardinality.HyperLogLogvoidsetHyperLogLog(io.airlift.stats.cardinality.HyperLogLog value) Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
Constructor Details
-
GroupedHyperLogLogState
public GroupedHyperLogLogState()
-
-
Method Details
-
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
-