Class LinearIterator

  • All Implemented Interfaces:
    java.util.Iterator<HistogramIterationValue>

    public class LinearIterator
    extends AbstractHistogramIterator
    implements java.util.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 Detail

      • valueUnitsPerBucket

        private long valueUnitsPerBucket
      • currentStepHighestValueReportingLevel

        private long currentStepHighestValueReportingLevel
      • currentStepLowestValueReportingLevel

        private long currentStepLowestValueReportingLevel
    • Constructor Detail

      • 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.