Class HistogramExemplarReservoir.HistogramCellSelector
java.lang.Object
io.opentelemetry.sdk.metrics.internal.exemplar.HistogramExemplarReservoir.HistogramCellSelector
- All Implemented Interfaces:
ReservoirCellSelector
- Enclosing class:
HistogramExemplarReservoir
static class HistogramExemplarReservoir.HistogramCellSelector
extends Object
implements ReservoirCellSelector
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
reservoirCellIndexFor
(ReservoirCell[] cells, double value, Attributes attributes, Context context) Determine the index of thecells
to record the measurement to.int
reservoirCellIndexFor
(ReservoirCell[] cells, long value, Attributes attributes, Context context) Determine the index of thecells
to record the measurement to.void
reset()
-
Field Details
-
boundaries
private final double[] boundaries
-
-
Constructor Details
-
HistogramCellSelector
-
-
Method Details
-
reservoirCellIndexFor
public int reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context) Description copied from interface:ReservoirCellSelector
Determine the index of thecells
to record the measurement to.- Specified by:
reservoirCellIndexFor
in interfaceReservoirCellSelector
-
reservoirCellIndexFor
public int reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context) Description copied from interface:ReservoirCellSelector
Determine the index of thecells
to record the measurement to.- Specified by:
reservoirCellIndexFor
in interfaceReservoirCellSelector
-
reset
public void reset()Description copied from interface:ReservoirCellSelector
- Specified by:
reset
in interfaceReservoirCellSelector
-