Class QuantileDigestAndPercentileStateFactory.GroupedQuantileDigestAndPercentileState
- java.lang.Object
-
- io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
-
- io.trino.operator.aggregation.state.QuantileDigestAndPercentileStateFactory.GroupedQuantileDigestAndPercentileState
-
- All Implemented Interfaces:
QuantileDigestAndPercentileState,AccumulatorState,GroupedAccumulatorState
- Enclosing class:
- QuantileDigestAndPercentileStateFactory
public static class QuantileDigestAndPercentileStateFactory.GroupedQuantileDigestAndPercentileState extends AbstractGroupedAccumulatorState implements QuantileDigestAndPercentileState
-
-
Constructor Summary
Constructors Constructor Description GroupedQuantileDigestAndPercentileState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(int value)voidensureCapacity(long size)io.airlift.stats.QuantileDigestgetDigest()longgetEstimatedSize()doublegetPercentile()voidsetDigest(io.airlift.stats.QuantileDigest digest)voidsetPercentile(double percentile)-
Methods inherited from class io.trino.operator.aggregation.state.AbstractGroupedAccumulatorState
getGroupId, setGroupId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
-
-
-
Method Detail
-
ensureCapacity
public void ensureCapacity(long size)
- Specified by:
ensureCapacityin interfaceGroupedAccumulatorState
-
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
-
-