Class AbstractHistogramIterator

java.lang.Object
org.HdrHistogram.AbstractHistogramIterator
All Implemented Interfaces:
Iterator<HistogramIterationValue>
Direct Known Subclasses:
AllValuesIterator, LinearIterator, LogarithmicIterator, PercentileIterator, RecordedValuesIterator

abstract class AbstractHistogramIterator extends Object implements Iterator<HistogramIterationValue>
Used for iterating through histogram values.
  • Field Details

    • histogram

    • arrayTotalCount

      long arrayTotalCount
    • currentIndex

      int currentIndex
    • currentValueAtIndex

      long currentValueAtIndex
    • nextValueAtIndex

      long nextValueAtIndex
    • prevValueIteratedTo

      long prevValueIteratedTo
    • totalCountToPrevIndex

      long totalCountToPrevIndex
    • totalCountToCurrentIndex

      long totalCountToCurrentIndex
    • totalValueToCurrentIndex

      long totalValueToCurrentIndex
    • countAtThisValue

      long countAtThisValue
    • freshSubBucket

      private boolean freshSubBucket
    • currentIterationValue

      final HistogramIterationValue currentIterationValue
    • integerToDoubleValueConversionRatio

      private double integerToDoubleValueConversionRatio
  • Constructor Details

    • AbstractHistogramIterator

      AbstractHistogramIterator()
  • Method Details

    • resetIterator

      void resetIterator(AbstractHistogram histogram)
    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<HistogramIterationValue>
      Returns:
      true if the iterator has more elements.
    • next

      public HistogramIterationValue next()
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator<HistogramIterationValue>
      Returns:
      the HistogramIterationValue associated with the next element in the iteration.
    • remove

      public void remove()
      Not supported. Will throw an UnsupportedOperationException.
      Specified by:
      remove in interface Iterator<HistogramIterationValue>
    • incrementIterationLevel

      abstract void incrementIterationLevel()
    • reachedIterationLevel

      abstract boolean reachedIterationLevel()
      Returns:
      true if the current position's data should be emitted by the iterator
    • getPercentileIteratedTo

      double getPercentileIteratedTo()
    • getPercentileIteratedFrom

      double getPercentileIteratedFrom()
    • getValueIteratedTo

      long getValueIteratedTo()
    • exhaustedSubBuckets

      private boolean exhaustedSubBuckets()
    • incrementSubBucket

      void incrementSubBucket()