Class TDigestAndPercentileStateFactory.GroupedTDigestAndPercentileState
java.lang.Object
io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
io.trino.operator.aggregation.state.TDigestAndPercentileStateFactory.GroupedTDigestAndPercentileState
- All Implemented Interfaces:
TDigestAndPercentileState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
TDigestAndPercentileStateFactory
public static class TDigestAndPercentileStateFactory.GroupedTDigestAndPercentileState
extends AbstractGroupedAccumulatorState
implements TDigestAndPercentileState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMemoryUsage(int value) voidensureCapacity(int size) io.airlift.stats.TDigestlongdoublevoidsetDigest(io.airlift.stats.TDigest digest) voidsetPercentile(double percentile) 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
-
GroupedTDigestAndPercentileState
public GroupedTDigestAndPercentileState()
-
-
Method Details
-
ensureCapacity
public void ensureCapacity(int size) - Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
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
-