Interface ExponentialHistogramDataPoint.BucketsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ExponentialHistogramDataPoint.Buckets,ExponentialHistogramDataPoint.Buckets.Builder
- Enclosing class:
- ExponentialHistogramDataPoint
public static interface ExponentialHistogramDataPoint.BucketsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetBucketCounts(int index)Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).intgetBucketCountsCount()Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).List<Long>getBucketCountsList()Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i).intgetOffset()Offset is the bucket index of the first entry in the bucket_counts array.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getOffset
int getOffset()
Offset is the bucket index of the first entry in the bucket_counts array. Note: This uses a varint encoding as a simple form of compression.
sint32 offset = 1;- Returns:
- The offset.
-
getBucketCountsList
List<Long> getBucketCountsList()
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Returns:
- A list containing the bucketCounts.
-
getBucketCountsCount
int getBucketCountsCount()
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Returns:
- The count of bucketCounts.
-
getBucketCounts
long getBucketCounts(int index)
Count is an array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than or equal to base^(offset+i) and less than base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding.
repeated uint64 bucket_counts = 2;- Parameters:
index- The index of the element to return.- Returns:
- The bucketCounts at the given index.
-
-