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 long
count
private int
currentScale
private double
max
private int
maxBuckets
private int
maxScale
private MemoryMode
memoryMode
private double
min
private DoubleBase2ExponentialHistogramBuckets
negativeBuckets
private DoubleBase2ExponentialHistogramBuckets
positiveBuckets
private MutableExponentialHistogramPointData
reusablePoint
private double
sum
private long
zeroCount
-
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 ExponentialHistogramPointData
doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.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 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: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)
-
-