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
Fields Modifier and Type Field Description private double[]boundariesprivate java.util.List<java.lang.Double>boundaryListprivate longcountprivate long[]countsprivate java.lang.Objectlockprivate doublemaxprivate doubleminprivate MutableHistogramPointDatareusablePointprivate doublesum
-
Constructor Summary
Constructors Constructor Description Handle(java.util.List<java.lang.Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HistogramPointDatadoAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.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 io.opentelemetry.sdk.metrics.internal.aggregator.AggregatorHandle
aggregateThenMaybeReset, hasRecordedValues, recordDouble, recordDouble, recordLong, recordLong
-
-
-
-
Field Detail
-
boundaryList
private final java.util.List<java.lang.Double> boundaryList
-
boundaries
private final double[] boundaries
-
lock
private final java.lang.Object lock
-
sum
private double sum
-
min
private double min
-
max
private double max
-
count
private long count
-
counts
private final long[] counts
-
reusablePoint
@Nullable private MutableHistogramPointData reusablePoint
-
-
Constructor Detail
-
Handle
Handle(java.util.List<java.lang.Double> boundaryList, double[] boundaries, ExemplarReservoir<DoubleExemplarData> reservoir, MemoryMode memoryMode)
-
-
Method Detail
-
doAggregateThenMaybeReset
protected HistogramPointData doAggregateThenMaybeReset(long startEpochNanos, long epochNanos, Attributes attributes, java.util.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>
-
-