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 DynamicPrimitiveLongList
private int
private int
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The bucket counts is a list of counts representing number of measurements that fall into each bucket.int
The offset shifts the bucket boundaries according tolower_bound = base^(offset+i).
int
getScale()
The scale of the buckets.long
The total count is the sum of all the values in the buckets.int
hashCode()
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:ExponentialHistogramBuckets
The scale of the buckets. Must align withExponentialHistogramPointData.getScale()
.- Specified by:
getScale
in interfaceExponentialHistogramBuckets
-
getOffset
public int getOffset()Description copied from interface:ExponentialHistogramBuckets
The offset shifts the bucket boundaries according tolower_bound = base^(offset+i).
.- Specified by:
getOffset
in interfaceExponentialHistogramBuckets
- Returns:
- the offset.
-
getBucketCounts
Description copied from interface:ExponentialHistogramBuckets
The bucket counts is a list of counts representing number of measurements that fall into each bucket.- Specified by:
getBucketCounts
in interfaceExponentialHistogramBuckets
- Returns:
- the bucket counts.
-
getReusableBucketCountsList
-
getTotalCount
public long getTotalCount()Description copied from interface:ExponentialHistogramBuckets
The total count is the sum of all the values in the buckets.- Specified by:
getTotalCount
in interfaceExponentialHistogramBuckets
- Returns:
- the total count.
-
set
public MutableExponentialHistogramBuckets set(int scale, int offset, long totalCount, DynamicPrimitiveLongList bucketCounts) -
toString
-
equals
-
hashCode
public int hashCode()
-