Interface SizedBucketAggregator
public interface SizedBucketAggregator
An aggregator capable of reporting bucket sizes in requested units. Used by RateAggregator for calendar-based buckets.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
bucketSize(long bucket, Rounding.DateTimeUnit unit)
Reports size of the particular bucket in requested units.double
Reports size of all buckets in requested units.
-
Method Details
-
bucketSize
Reports size of the particular bucket in requested units. -
bucketSize
Reports size of all buckets in requested units. Throws an exception if it is not possible to calculate without knowing the concrete bucket.
-