Class CompressedExponentialHistogramHolder

java.lang.Object
org.elasticsearch.exponentialhistogram.CompressedExponentialHistogramHolder
All Implemented Interfaces:
Closeable, AutoCloseable, Releasable

public class CompressedExponentialHistogramHolder extends Object implements Releasable
Holds an ExponentialHistogram in its encoded form using a circuit-breaking byte buffer for proper memory accounting.

When set to a CompressedExponentialHistogram, the already-encoded bytes are copied directly without re-encoding. For other ExponentialHistogram implementations, the histogram is encoded into the compressed format first.

The stored histogram can be accessed as a ExponentialHistogram via accessor().