@NotThreadSafe public class TDigest extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_COMPRESSION |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double value) |
void |
add(double value,
double weight) |
static TDigest |
copyOf(TDigest other) |
static TDigest |
deserialize(io.airlift.slice.Slice serialized) |
int |
estimatedInMemorySizeInBytes() |
double |
getCount() |
double |
getMax() |
double |
getMin() |
void |
mergeWith(TDigest other) |
io.airlift.slice.Slice |
serialize() |
int |
serializedSizeInBytes() |
double |
valueAt(double quantile) |
List<Double> |
valuesAt(List<Double> quantiles) |
public static final double DEFAULT_COMPRESSION
public static TDigest deserialize(io.airlift.slice.Slice serialized)
public double getMin()
public double getMax()
public double getCount()
public void add(double value)
public void add(double value,
double weight)
public void mergeWith(TDigest other)
public double valueAt(double quantile)
public io.airlift.slice.Slice serialize()
public int serializedSizeInBytes()
public int estimatedInMemorySizeInBytes()
Copyright © 2010–2020 Airlift. All rights reserved.