public class LinearBuckets extends Buckets
Buckets
.
For 100-600 range and 5 bucket count, the following buckets are created:
Index | Min | Max | Samples | Counter |
---|---|---|---|---|
0 | -∞ | 100 | 53 | # (1) |
1 | 100 | 200 | 128,136 | ## (2) |
2 | 200 | 300 | 245,231,264,287,275 | ###### (5) |
3 | 300 | 400 | 356,341 | ## (2) |
4 | 400 | 500 | 461 | # (1) |
5 | 500 | 600 | 801 | # (1) |
6 | 600 | +∞ | (0) |
Constructor and Description |
---|
LinearBuckets(long min,
long max,
int bucketNb)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Bucket |
getBucketForValue(long value)
Get the bucket containing the given value.
|
addValue, addValues, clear, estimateQuantile, getBucketNb, getBuckets, getLogMessage, getLogTemplate, getMax, getMedian, getMin, getQuantile, getQuantiles, getQuartiles, log, sample, setLogTemplate, toString
public LinearBuckets(long min, long max, int bucketNb)
min
- Duration min (lower bound of all buckets)max
- Duration max (upper bound of all buckets)bucketNb
- Number of buckets between min and maxprotected Bucket getBucketForValue(long value)
getBucketForValue
in class Buckets
value
- ValueCopyright © 2019. All rights reserved.