Package io.opencensus.stats
Class BucketBoundaries
- java.lang.Object
-
- io.opencensus.stats.BucketBoundaries
-
- Direct Known Subclasses:
AutoValue_BucketBoundaries
@Immutable public abstract class BucketBoundaries extends java.lang.Object
The bucket boundaries for a histogram.- Since:
- 0.8
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description BucketBoundaries()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BucketBoundaries
create(java.util.List<java.lang.Double> bucketBoundaries)
Returns aBucketBoundaries
with the given buckets.private static java.util.List<java.lang.Double>
dropNegativeBucketBounds(java.util.List<java.lang.Double> bucketBoundaries)
abstract java.util.List<java.lang.Double>
getBoundaries()
Returns a list of histogram bucket boundaries.
-
-
-
Method Detail
-
create
public static final BucketBoundaries create(java.util.List<java.lang.Double> bucketBoundaries)
Returns aBucketBoundaries
with the given buckets.- Parameters:
bucketBoundaries
- the boundaries for the buckets in the underlying histogram.- Returns:
- a new
BucketBoundaries
with the specified boundaries. - Throws:
java.lang.NullPointerException
- ifbucketBoundaries
is null.java.lang.IllegalArgumentException
- ifbucketBoundaries
is not sorted.- Since:
- 0.8
-
dropNegativeBucketBounds
private static java.util.List<java.lang.Double> dropNegativeBucketBounds(java.util.List<java.lang.Double> bucketBoundaries)
-
getBoundaries
public abstract java.util.List<java.lang.Double> getBoundaries()
Returns a list of histogram bucket boundaries.- Returns:
- a list of histogram bucket boundaries.
- Since:
- 0.8
-
-