Class AbstractExponentialHistogram

java.lang.Object
org.elasticsearch.exponentialhistogram.AbstractExponentialHistogram
All Implemented Interfaces:
org.apache.lucene.util.Accountable, ExponentialHistogram
Direct Known Subclasses:
CompressedExponentialHistogram

public abstract class AbstractExponentialHistogram extends Object implements ExponentialHistogram
Basic implementation for ExponentialHistogram with common functionality.
  • Constructor Details

    • AbstractExponentialHistogram

      public AbstractExponentialHistogram()
  • Method Details

    • valueCount

      public long valueCount()
      Description copied from interface: ExponentialHistogram
      Returns 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:
      valueCount in interface ExponentialHistogram
      Returns:
      the value count, guaranteed to be zero for empty histograms
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object