Class BucketBoundaries

java.lang.Object
io.opencensus.stats.BucketBoundaries
Direct Known Subclasses:
AutoValue_BucketBoundaries

@Immutable public abstract class BucketBoundaries extends Object
The bucket boundaries for a histogram.
Since:
0.8
  • Field Details

    • logger

      private static final Logger logger
  • Constructor Details

    • BucketBoundaries

      public BucketBoundaries()
  • Method Details

    • create

      public static final BucketBoundaries create(List<Double> bucketBoundaries)
      Returns a BucketBoundaries with the given buckets.
      Parameters:
      bucketBoundaries - the boundaries for the buckets in the underlying histogram.
      Returns:
      a new BucketBoundaries with the specified boundaries.
      Throws:
      NullPointerException - if bucketBoundaries is null.
      IllegalArgumentException - if bucketBoundaries is not sorted.
      Since:
      0.8
    • dropNegativeBucketBounds

      private static List<Double> dropNegativeBucketBounds(List<Double> bucketBoundaries)
    • getBoundaries

      public abstract List<Double> getBoundaries()
      Returns a list of histogram bucket boundaries.
      Returns:
      a list of histogram bucket boundaries.
      Since:
      0.8