Top Description Fields Constructors Methods
org.HdrHistogram

public Class AllValuesIterator

extends AbstractHistogramIterator
implements Iterator<HistogramIterationValue>
Class Inheritance
All Implemented Interfaces
java.util.Iterator
Imports
java.util.ConcurrentModificationException, .Iterator

Used for iterating through histogram values using the finest granularity steps supported by the underlying representation. The iteration steps through all possible unit value levels, regardless of whether or not there were recorded values for that value level, and terminates when all recorded histogram values are exhausted.

Field Summary

Modifier and TypeField and Description
pack-priv int
Inherited from org.HdrHistogram.AbstractHistogramIterator:
arrayTotalCountcountAtThisValuecurrentIndexcurrentIterationValuecurrentValueAtIndexhistogramnextValueAtIndexprevValueIteratedTototalCountToCurrentIndextotalCountToPrevIndextotalValueToCurrentIndex

Constructor Summary

AccessConstructor and Description
public
AllValuesIterator(final AbstractHistogram
The histogram this iterator will operate on
histogram
)

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Overrides org.HdrHistogram.AbstractHistogramIterator.hasNext.

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
pack-priv void
pack-priv boolean
public void
reset()

Reset iterator for re-use in a fresh iteration over the same histogram data set.

private void
reset(final AbstractHistogram histogram)

Inherited from org.HdrHistogram.AbstractHistogramIterator:
getPercentileIteratedFromgetPercentileIteratedTogetValueIteratedToincrementSubBucketnextremoveresetIterator

Field Detail

visitedIndexback to summary
pack-priv int visitedIndex

Constructor Detail

AllValuesIteratorback to summary
public AllValuesIterator(final AbstractHistogram histogram)
Parameters
histogram:AbstractHistogram

The histogram this iterator will operate on

Method Detail

hasNextback to summary
public boolean hasNext()

Overrides org.HdrHistogram.AbstractHistogramIterator.hasNext.

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.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.)

Returns:boolean

true if the iteration has more elements

Annotations
@Override
incrementIterationLevelback to summary
pack-priv void incrementIterationLevel()

Implements abstract org.HdrHistogram.AbstractHistogramIterator.incrementIterationLevel.

Annotations
@Override
reachedIterationLevelback to summary
pack-priv boolean reachedIterationLevel()

Implements abstract org.HdrHistogram.AbstractHistogramIterator.reachedIterationLevel.

Returns:boolean

Doc from org.HdrHistogram.AbstractHistogramIterator.reachedIterationLevel.

true if the current position's data should be emitted by the iterator

Annotations
@Override
resetback to summary
public void reset()

Reset iterator for re-use in a fresh iteration over the same histogram data set.

resetback to summary
private void reset(final AbstractHistogram histogram)