Class TDigestAndPercentileArrayStateFactory.SingleTDigestAndPercentileArrayState
java.lang.Object
io.trino.operator.aggregation.state.TDigestAndPercentileArrayStateFactory.SingleTDigestAndPercentileArrayState
- All Implemented Interfaces:
TDigestAndPercentileArrayState,AccumulatorState
- Enclosing class:
TDigestAndPercentileArrayStateFactory
public static class TDigestAndPercentileArrayStateFactory.SingleTDigestAndPercentileArrayState
extends Object
implements TDigestAndPercentileArrayState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int value) io.airlift.stats.TDigestlongvoidsetDigest(io.airlift.stats.TDigest digest) voidsetPercentiles(List<Double> percentiles) Methods 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
-
Field Details
-
INSTANCE_SIZE
public static final int INSTANCE_SIZE
-
-
Constructor Details
-
SingleTDigestAndPercentileArrayState
public SingleTDigestAndPercentileArrayState()
-
-
Method Details
-
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
-