Class DoubleBase2ExponentialHistogramAggregator.Handle
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle<ExponentialHistogramPointData,DoubleExemplarData>
-
- io.opentelemetry.sdk.metrics.internal.aggregator.DoubleBase2ExponentialHistogramAggregator.Handle
-
- Enclosing class:
- DoubleBase2ExponentialHistogramAggregator
static final class DoubleBase2ExponentialHistogramAggregator.Handle extends AggregatorHandle<ExponentialHistogramPointData,DoubleExemplarData>
-
-
Field Summary
Fields Modifier and Type Field Description private longcountprivate intcurrentScaleprivate doublemaxprivate intmaxBucketsprivate intmaxScaleprivate MemoryModememoryModeprivate doubleminprivate DoubleBase2ExponentialHistogramBucketsnegativeBucketsprivate DoubleBase2ExponentialHistogramBucketspositiveBucketsprivate MutableExponentialHistogramPointDatareusablePointprivate doublesumprivate longzeroCount
-
Constructor Summary
Constructors Constructor Description Handle(ExemplarReservoir<DoubleExemplarData> reservoir, int maxBuckets, int maxScale, MemoryMode memoryMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExponentialHistogramPointDatadoAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.List<DoubleExemplarData> exemplars, boolean reset)Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean).protected voiddoRecordDouble(double value)Concrete Aggregator instances should implement this method in order support recordings of double values.protected voiddoRecordLong(long value)Concrete Aggregator instances should implement this method in order support recordings of long values.(package private) voiddownScale(int by)private ExponentialHistogramBucketsresolveBuckets(DoubleBase2ExponentialHistogramBuckets buckets, int scale, boolean reset, ExponentialHistogramBuckets reusableBuckets)-
Methods inherited from class io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle
aggregateThenMaybeReset, hasRecordedValues, recordDouble, recordDouble, recordLong, recordLong
-
-
-
-
Field Detail
-
maxBuckets
private final int maxBuckets
-
maxScale
private final int maxScale
-
positiveBuckets
@Nullable private DoubleBase2ExponentialHistogramBuckets positiveBuckets
-
negativeBuckets
@Nullable private DoubleBase2ExponentialHistogramBuckets negativeBuckets
-
zeroCount
private long zeroCount
-
sum
private double sum
-
min
private double min
-
max
private double max
-
count
private long count
-
currentScale
private int currentScale
-
memoryMode
private final MemoryMode memoryMode
-
reusablePoint
@Nullable private final MutableExponentialHistogramPointData reusablePoint
-
-
Constructor Detail
-
Handle
Handle(ExemplarReservoir<DoubleExemplarData> reservoir, int maxBuckets, int maxScale, MemoryMode memoryMode)
-
-
Method Detail
-
doAggregateThenMaybeReset
protected ExponentialHistogramPointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.List<DoubleExemplarData> exemplars, boolean reset)
Description copied from class:AggregatorHandleImplementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean).- Specified by:
doAggregateThenMaybeResetin classAggregatorHandle<ExponentialHistogramPointData,DoubleExemplarData>
-
resolveBuckets
private ExponentialHistogramBuckets resolveBuckets(@Nullable DoubleBase2ExponentialHistogramBuckets buckets, int scale, boolean reset, @Nullable ExponentialHistogramBuckets reusableBuckets)
-
doRecordDouble
protected void doRecordDouble(double value)
Description copied from class:AggregatorHandleConcrete Aggregator instances should implement this method in order support recordings of double values.- Overrides:
doRecordDoublein classAggregatorHandle<ExponentialHistogramPointData,DoubleExemplarData>
-
doRecordLong
protected void doRecordLong(long value)
Description copied from class:AggregatorHandleConcrete Aggregator instances should implement this method in order support recordings of long values.- Overrides:
doRecordLongin classAggregatorHandle<ExponentialHistogramPointData,DoubleExemplarData>
-
downScale
void downScale(int by)
-
-