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 Type
    Method
    Description
    double
    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

      double bucketSize(long bucket, Rounding.DateTimeUnit unit)
      Reports size of the particular bucket in requested units.
    • bucketSize

      double bucketSize(Rounding.DateTimeUnit unit)
      Reports size of all buckets in requested units. Throws an exception if it is not possible to calculate without knowing the concrete bucket.