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 long
private int
private double
private final int
private final int
private final MemoryMode
private double
private final MutableExponentialHistogramPointData
private double
private long
-
Constructor Summary
ConstructorsConstructorDescriptionHandle
(ExemplarReservoir<DoubleExemplarData> reservoir, int maxBuckets, int maxScale, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExponentialHistogramPointData
doAggregateThenMaybeReset
(long startEpochNanos, long epochNanos, Attributes attributes, List<DoubleExemplarData> exemplars, boolean reset) Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.protected void
doRecordDouble
(double value) Concrete Aggregator instances should implement this method in order support recordings of double values.protected void
doRecordLong
(long value) Concrete Aggregator instances should implement this method in order support recordings of long values.(package private) void
downScale
(int by) private ExponentialHistogramBuckets
resolveBuckets
(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:AggregatorHandle
Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.- Specified by:
doAggregateThenMaybeReset
in 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:AggregatorHandle
Concrete Aggregator instances should implement this method in order support recordings of double values.- Overrides:
doRecordDouble
in classAggregatorHandle<ExponentialHistogramPointData,
DoubleExemplarData>
-
doRecordLong
protected void doRecordLong(long value) Description copied from class:AggregatorHandle
Concrete Aggregator instances should implement this method in order support recordings of long values.- Overrides:
doRecordLong
in classAggregatorHandle<ExponentialHistogramPointData,
DoubleExemplarData>
-
downScale
void downScale(int by)
-