public interface Histogram<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Histogram.Builder<T> |
static class |
Histogram.Summation |
Modifier and Type | Method and Description |
---|---|
static DefaultHistogram.Builder<java.lang.Double> |
exponential(double start,
double exp,
int count) |
static BucketFunction<java.lang.Double> |
exponentialFunction(double start,
double exp,
int count) |
static TimeHistogram.Builder |
exponentialTime(java.util.concurrent.TimeUnit unit,
double start,
double exp,
int count) |
Histogram<T> |
filterBuckets(BucketFilter<T> filter) |
static <U> DefaultHistogram.Builder<U> |
function(BucketFunction<U> f) |
Bucket<T> |
getBucket(T tag) |
java.util.Collection<Bucket<T>> |
getBuckets() |
boolean |
isCumulative() |
static DefaultHistogram.Builder<java.lang.Double> |
linear(double start,
double width,
int count) |
static BucketFunction<java.lang.Double> |
linearFunction(double start,
double width,
int count) |
static TimeHistogram.Builder |
linearTime(java.util.concurrent.TimeUnit unit,
double start,
double width,
int count) |
void |
observe(double value) |
static PercentileHistogram.Builder |
percentiles() |
static PercentileTimeHistogram.Builder |
percentilesTime() |
Histogram<T> filterBuckets(BucketFilter<T> filter)
void observe(double value)
boolean isCumulative()
static <U> DefaultHistogram.Builder<U> function(BucketFunction<U> f)
static DefaultHistogram.Builder<java.lang.Double> linear(double start, double width, int count)
start
- Leftmost bucketwidth
- The interval between nonZeroBucketscount
- The total number of nonZeroBuckets, yielding count
-1 intervals between themstatic TimeHistogram.Builder linearTime(java.util.concurrent.TimeUnit unit, double start, double width, int count)
unit
- The time unit of start
.start
- Leftmost bucketwidth
- The interval between nonZeroBucketscount
- The total number of nonZeroBuckets, yielding count
-1 intervals between themstatic DefaultHistogram.Builder<java.lang.Double> exponential(double start, double exp, int count)
start
- Leftmost bucket is start*factorexp
- The exponentcount
- The total number of nonZeroBuckets, yielding count
-1 intervals between themstatic TimeHistogram.Builder exponentialTime(java.util.concurrent.TimeUnit unit, double start, double exp, int count)
unit
- The time unit of start
.start
- Leftmost bucket is start*factorexp
- The exponentcount
- The total number of nonZeroBuckets, yielding count
-1 intervals between themstatic PercentileHistogram.Builder percentiles()
static PercentileTimeHistogram.Builder percentilesTime()
static BucketFunction<java.lang.Double> linearFunction(double start, double width, int count)
static BucketFunction<java.lang.Double> exponentialFunction(double start, double exp, int count)