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 Summary
-
Method Details
-
iterator
CopyableBucketIterator iterator()- Returns:
- a
BucketIteratorfor the populated buckets of this bucket range. TheBucketIterator.scale()of the returned iterator must be the same asExponentialHistogram.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
-