Interface ExponentialHistogram.Buckets

Enclosing interface:
ExponentialHistogram

public static interface ExponentialHistogram.Buckets
Represents a bucket range of an ExponentialHistogram, either the positive or the negative range.
  • Method Details

    • iterator

      Returns:
      a BucketIterator for the populated buckets of this bucket range. The BucketIterator.scale() of the returned iterator must be the same as ExponentialHistogram.scale().
    • maxBucketIndex

      OptionalLong maxBucketIndex()
      Returns:
      the highest populated bucket index, or an empty optional if no buckets are populated
    • valueCount

      long valueCount()
      Returns:
      the sum of the counts across all buckets of this range
    • bucketCount

      default int bucketCount()
      Returns the number of buckets. Note that this operation might require iterating over all buckets, and therefore is not cheap.
      Returns:
      the number of buckets