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 privateHistogramCellSelector(java.util.List<java.lang.Double> boundaries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intreservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)Determine the index of thecellsto record the measurement to.intreservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)Determine the index of thecellsto record the measurement to.voidreset()
-
-
-
Method Detail
-
reservoirCellIndexFor
public int reservoirCellIndexFor(ReservoirCell[] cells, long value, Attributes attributes, Context context)
Description copied from interface:ReservoirCellSelectorDetermine the index of thecellsto record the measurement to.- Specified by:
reservoirCellIndexForin interfaceReservoirCellSelector
-
reservoirCellIndexFor
public int reservoirCellIndexFor(ReservoirCell[] cells, double value, Attributes attributes, Context context)
Description copied from interface:ReservoirCellSelectorDetermine the index of thecellsto record the measurement to.- Specified by:
reservoirCellIndexForin interfaceReservoirCellSelector
-
reset
public void reset()
Description copied from interface:ReservoirCellSelector- Specified by:
resetin interfaceReservoirCellSelector
-
-