Class LinearIterator

All Implemented Interfaces:
Iterator<HistogramIterationValue>

public class LinearIterator extends AbstractHistogramIterator implements Iterator<HistogramIterationValue>
Used for iterating through histogram values in linear steps. The iteration is performed in steps of valueUnitsPerBucket in size, terminating when all recorded histogram values are exhausted. Note that each iteration "bucket" includes values up to and including the next bucket boundary value.
  • Field Details

    • valueUnitsPerBucket

      private long valueUnitsPerBucket
    • currentStepHighestValueReportingLevel

      private long currentStepHighestValueReportingLevel
    • currentStepLowestValueReportingLevel

      private long currentStepLowestValueReportingLevel
  • Constructor Details

    • LinearIterator

      public LinearIterator(AbstractHistogram histogram, long valueUnitsPerBucket)
      Parameters:
      histogram - The histogram this iterator will operate on
      valueUnitsPerBucket - The size (in value units) of each bucket iteration.
  • Method Details