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 long
private final long[]
private final Object
private double
private double
private MutableHistogramPointData
private double
-
Constructor Summary
ConstructorsConstructorDescriptionHandle
(List<Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected HistogramPointData
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.Methods inherited from class io.opentelemetry.sdk.metrics.internal.aggregator.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:AggregatorHandle
Implementation of theAggregatorHandle.aggregateThenMaybeReset(long, long, Attributes, boolean)
.- Specified by:
doAggregateThenMaybeReset
in classAggregatorHandle<HistogramPointData,
DoubleExemplarData>
-
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<HistogramPointData,
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<HistogramPointData,
DoubleExemplarData>
-