public class AllValuesIterator extends AbstractHistogramIterator implements java.util.Iterator<HistogramIterationValue>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
visitedIndex |
arrayTotalCount, countAtThisValue, currentIndex, currentIterationValue, currentValueAtIndex, histogram, nextValueAtIndex, prevValueIteratedTo, totalCountToCurrentIndex, totalCountToPrevIndex, totalValueToCurrentIndex| Constructor and Description |
|---|
AllValuesIterator(AbstractHistogram histogram) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
(package private) void |
incrementIterationLevel() |
(package private) boolean |
reachedIterationLevel() |
void |
reset()
Reset iterator for re-use in a fresh iteration over the same histogram data set.
|
private void |
reset(AbstractHistogram histogram) |
getPercentileIteratedFrom, getPercentileIteratedTo, getValueIteratedTo, incrementSubBucket, next, remove, resetIteratorpublic AllValuesIterator(AbstractHistogram histogram)
histogram - The histogram this iterator will operate onpublic void reset()
private void reset(AbstractHistogram histogram)
void incrementIterationLevel()
incrementIterationLevel in class AbstractHistogramIteratorboolean reachedIterationLevel()
reachedIterationLevel in class AbstractHistogramIteratorpublic boolean hasNext()
AbstractHistogramIteratorhasNext in interface java.util.Iterator<HistogramIterationValue>hasNext in class AbstractHistogramIterator