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
FieldsModifier and TypeFieldDescriptionprivate longprivate intprivate doubleprivate final intprivate final intprivate final MemoryModeprivate doubleprivate final MutableExponentialHistogramPointDataprivate doubleprivate long -
Constructor Summary
ConstructorsConstructorDescriptionHandle(ExemplarReservoir<DoubleExemplarData> reservoir, int maxBuckets, int maxScale, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExponentialHistogramPointDatadoAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, 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 Details
-
maxBuckets
private final int maxBuckets -
maxScale
private final int maxScale -
positiveBuckets
-
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
-
reusablePoint
-
-
Constructor Details
-
Handle
Handle(ExemplarReservoir<DoubleExemplarData> reservoir, int maxBuckets, int maxScale, MemoryMode memoryMode)
-
-
Method Details
-
doAggregateThenMaybeReset
protected ExponentialHistogramPointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, 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)
-