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 Modifier and Type Field Description static intINSTANCE_SIZE
-
Constructor Summary
Constructors Constructor Description SingleTDigestAndPercentileArrayState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMemoryUsage(int value)io.airlift.stats.TDigestgetDigest()longgetEstimatedSize()List<Double>getPercentiles()voidsetDigest(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, wait
-
Methods inherited from interface io.trino.spi.function.AccumulatorState
copy
-
-
-
-
Method Detail
-
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
public List<Double> getPercentiles()
- Specified by:
getPercentilesin interfaceTDigestAndPercentileArrayState
-
setPercentiles
public void setPercentiles(List<Double> percentiles)
- Specified by:
setPercentilesin interfaceTDigestAndPercentileArrayState
-
addMemoryUsage
public void addMemoryUsage(int value)
- Specified by:
addMemoryUsagein interfaceTDigestAndPercentileArrayState
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceAccumulatorState
-
-