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