Class DoubleExplicitBucketHistogramAggregator.Handle
java.lang.Object
io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle<HistogramPointData, DoubleExemplarData>
io.opentelemetry.sdk.metrics.internal.aggregator.DoubleExplicitBucketHistogramAggregator.Handle
- Enclosing class:
DoubleExplicitBucketHistogramAggregator
static final class DoubleExplicitBucketHistogramAggregator.Handle
extends AggregatorHandle<HistogramPointData, DoubleExemplarData>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double[]private longprivate final long[]private final Objectprivate doubleprivate doubleprivate MutableHistogramPointDataprivate double -
Constructor Summary
ConstructorsConstructorDescriptionHandle(List<Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected HistogramPointDatadoAggregateThenMaybeReset(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.Methods inherited from class AggregatorHandle
aggregateThenMaybeReset, hasRecordedValues, recordDouble, recordDouble, recordLong, recordLong
-
Field Details
-
boundaryList
-
boundaries
private final double[] boundaries -
lock
-
sum
private double sum -
min
private double min -
max
private double max -
count
private long count -
counts
private final long[] counts -
reusablePoint
-
-
Constructor Details
-
Handle
Handle(List<Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
-
Method Details
-
doAggregateThenMaybeReset
protected HistogramPointData 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<HistogramPointData, DoubleExemplarData>
-
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<HistogramPointData, 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<HistogramPointData, DoubleExemplarData>
-