Class TDigestAndPercentileArrayStateFactory.GroupedTDigestAndPercentileArrayState
java.lang.Object
io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
io.trino.operator.aggregation.state.TDigestAndPercentileArrayStateFactory.GroupedTDigestAndPercentileArrayState
- All Implemented Interfaces:
TDigestAndPercentileArrayState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
TDigestAndPercentileArrayStateFactory
public static class TDigestAndPercentileArrayStateFactory.GroupedTDigestAndPercentileArrayState
extends AbstractGroupedAccumulatorState
implements TDigestAndPercentileArrayState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int value) voidensureCapacity(long size) io.airlift.stats.TDigestlongvoidsetDigest(io.airlift.stats.TDigest digest) voidsetPercentiles(List<Double> percentiles) 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
-
GroupedTDigestAndPercentileArrayState
public GroupedTDigestAndPercentileArrayState()
-
-
Method Details
-
ensureCapacity
public void ensureCapacity(long size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
getDigest
public io.airlift.stats.TDigest getDigest()- Specified by:
getDigestin interfaceTDigestAndPercentileArrayState
-
setDigest
public void setDigest(io.airlift.stats.TDigest digest) - Specified by:
setDigestin interfaceTDigestAndPercentileArrayState
-
getPercentiles
- Specified by:
getPercentilesin interfaceTDigestAndPercentileArrayState
-
setPercentiles
- Specified by:
setPercentilesin interfaceTDigestAndPercentileArrayState
-
addMemoryUsage
public void addMemoryUsage(int value) - Specified by:
addMemoryUsagein interfaceTDigestAndPercentileArrayState
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-