Class TDigestAndPercentileStateFactory.SingleTDigestAndPercentileState
java.lang.Object
io.trino.operator.aggregation.state.TDigestAndPercentileStateFactory.SingleTDigestAndPercentileState
- All Implemented Interfaces:
TDigestAndPercentileState,AccumulatorState
- Enclosing class:
TDigestAndPercentileStateFactory
public static class TDigestAndPercentileStateFactory.SingleTDigestAndPercentileState
extends Object
implements TDigestAndPercentileState
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int value) io.airlift.stats.TDigestlongdoublevoidsetDigest(io.airlift.stats.TDigest digest) voidsetPercentile(double percentile) 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
-
SingleTDigestAndPercentileState
public SingleTDigestAndPercentileState()
-
-
Method Details
-
getDigest
public io.airlift.stats.TDigest getDigest()- Specified by:
getDigestin interfaceTDigestAndPercentileState
-
setDigest
public void setDigest(io.airlift.stats.TDigest digest) - Specified by:
setDigestin interfaceTDigestAndPercentileState
-
getPercentile
public double getPercentile()- Specified by:
getPercentilein interfaceTDigestAndPercentileState
-
setPercentile
public void setPercentile(double percentile) - Specified by:
setPercentilein interfaceTDigestAndPercentileState
-
addMemoryUsage
public void addMemoryUsage(int value) - Specified by:
addMemoryUsagein interfaceTDigestAndPercentileState
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSizein interfaceAccumulatorState
-