Class MutableExponentialHistogramBuckets
java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.MutableExponentialHistogramBuckets
- All Implemented Interfaces:
ExponentialHistogramBuckets
public final class MutableExponentialHistogramBuckets
extends Object
implements ExponentialHistogramBuckets
A mutable
ExponentialHistogramBuckets
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
This class is not thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DynamicPrimitiveLongListprivate intprivate intprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe bucket counts is a list of counts representing number of measurements that fall into each bucket.intThe offset shifts the bucket boundaries according tolower_bound = base^(offset+i).intgetScale()The scale of the buckets.longThe total count is the sum of all the values in the buckets.inthashCode()set(int scale, int offset, long totalCount, DynamicPrimitiveLongList bucketCounts) toString()
-
Field Details
-
scale
private int scale -
offset
private int offset -
totalCount
private long totalCount -
bucketCounts
-
-
Constructor Details
-
MutableExponentialHistogramBuckets
public MutableExponentialHistogramBuckets()
-
-
Method Details
-
getScale
public int getScale()Description copied from interface:ExponentialHistogramBucketsThe scale of the buckets. Must align withExponentialHistogramPointData.getScale().- Specified by:
getScalein interfaceExponentialHistogramBuckets
-
getOffset
public int getOffset()Description copied from interface:ExponentialHistogramBucketsThe offset shifts the bucket boundaries according tolower_bound = base^(offset+i)..- Specified by:
getOffsetin interfaceExponentialHistogramBuckets- Returns:
- the offset.
-
getBucketCounts
Description copied from interface:ExponentialHistogramBucketsThe bucket counts is a list of counts representing number of measurements that fall into each bucket.- Specified by:
getBucketCountsin interfaceExponentialHistogramBuckets- Returns:
- the bucket counts.
-
getReusableBucketCountsList
-
getTotalCount
public long getTotalCount()Description copied from interface:ExponentialHistogramBucketsThe total count is the sum of all the values in the buckets.- Specified by:
getTotalCountin interfaceExponentialHistogramBuckets- Returns:
- the total count.
-
set
public MutableExponentialHistogramBuckets set(int scale, int offset, long totalCount, DynamicPrimitiveLongList bucketCounts) -
toString
-
equals
-
hashCode
-