Class Histogram.Builder

Enclosing class:
Histogram

public static class Histogram.Builder extends SimpleCollector.Builder<Histogram.Builder,Histogram>
  • Field Details

    • buckets

      private double[] buckets
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • create

      public Histogram create()
      Description copied from class: SimpleCollector.Builder
      Return the constructed collector.

      Abstract due to generics limitations.

      Specified by:
      create in class SimpleCollector.Builder<Histogram.Builder,Histogram>
    • buckets

      public Histogram.Builder buckets(double... buckets)
      Set the upper bounds of buckets for the histogram.
    • linearBuckets

      public Histogram.Builder linearBuckets(double start, double width, int count)
      Set the upper bounds of buckets for the histogram with a linear sequence.
    • exponentialBuckets

      public Histogram.Builder exponentialBuckets(double start, double factor, int count)
      Set the upper bounds of buckets for the histogram with an exponential sequence.