Class AbstractExponentialHistogram
java.lang.Object
org.elasticsearch.exponentialhistogram.AbstractExponentialHistogram
- All Implemented Interfaces:
org.apache.lucene.util.Accountable,ExponentialHistogram
- Direct Known Subclasses:
CompressedExponentialHistogram
Basic implementation for
ExponentialHistogram with common functionality.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.exponentialhistogram.ExponentialHistogram
ExponentialHistogram.Buckets -
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLEFields inherited from interface org.elasticsearch.exponentialhistogram.ExponentialHistogram
MAX_INDEX, MAX_INDEX_BITS, MAX_SCALE, MIN_INDEX, MIN_SCALE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsedMethods inherited from interface org.elasticsearch.exponentialhistogram.ExponentialHistogram
max, min, negativeBuckets, positiveBuckets, scale, sum, zeroBucket
-
Constructor Details
-
AbstractExponentialHistogram
public AbstractExponentialHistogram()
-
-
Method Details
-
valueCount
public long valueCount()Description copied from interface:ExponentialHistogramReturns the number of values represented by this histogram. In other words, this is the sum of the counts of all buckets including the zero bucket.- Specified by:
valueCountin interfaceExponentialHistogram- Returns:
- the value count, guaranteed to be zero for empty histograms
-
hashCode
public int hashCode() -
equals
-
toString
-