Class TDigestToExponentialHistogramConverter
java.lang.Object
org.elasticsearch.exponentialhistogram.TDigestToExponentialHistogramConverter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceAn iterator iterating over T-Digest centroids.static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(TDigestToExponentialHistogramConverter.CentroidIterator centroids, ExponentialHistogramCircuitBreaker breaker) Convert the given centroids to an exponential histogram.
-
Constructor Details
-
TDigestToExponentialHistogramConverter
public TDigestToExponentialHistogramConverter()
-
-
Method Details
-
convert
public static ReleasableExponentialHistogram convert(TDigestToExponentialHistogramConverter.CentroidIterator centroids, ExponentialHistogramCircuitBreaker breaker) Convert the given centroids to an exponential histogram. Sum, min, and max will be estimated.- Parameters:
centroids- the T-Digest centroids to convert- Returns:
- the resulting exponential histogram
-
convertLazy
public static TDigestToExponentialHistogramConverter.LazyConversion convertLazy(TDigestToExponentialHistogramConverter.CentroidIterator centroids)
-