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 java.lang.Object implements ReservoirCellSelector
-
-
Field Summary
Fields Modifier and Type Field Description private double[]
boundaries
-
Constructor Summary
Constructors Modifier Constructor Description private
HistogramCellSelector(java.util.List<java.lang.Double> boundaries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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()
-
-
-
Method Detail
-
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
-
-