Package io.airlift.stats
Class TDigest
- java.lang.Object
-
- io.airlift.stats.TDigest
-
@NotThreadSafe public class TDigest extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_COMPRESSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double value)voidadd(double value, double weight)static TDigestcopyOf(TDigest other)static TDigestdeserialize(io.airlift.slice.Slice serialized)intestimatedInMemorySizeInBytes()doublegetCount()doublegetMax()doublegetMin()voidmergeWith(TDigest other)io.airlift.slice.Sliceserialize()intserializedSizeInBytes()doublevalueAt(double quantile)List<Double>valuesAt(List<Double> quantiles)
-
-
-
Field Detail
-
DEFAULT_COMPRESSION
public static final double DEFAULT_COMPRESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public static TDigest deserialize(io.airlift.slice.Slice serialized)
-
getMin
public double getMin()
-
getMax
public double getMax()
-
getCount
public double getCount()
-
add
public void add(double value)
-
add
public void add(double value, double weight)
-
mergeWith
public void mergeWith(TDigest other)
-
valueAt
public double valueAt(double quantile)
-
serialize
public io.airlift.slice.Slice serialize()
-
serializedSizeInBytes
public int serializedSizeInBytes()
-
estimatedInMemorySizeInBytes
public int estimatedInMemorySizeInBytes()
-
-