Top Description Fields Constructors Methods
org.HdrHistogram

pack-priv abstract Class AbstractHistogramIterator

extends Object
implements Iterator<HistogramIterationValue>
Class Inheritance
All Implemented Interfaces
java.util.Iterator
Known Direct Subclasses
org.HdrHistogram.AllValuesIterator, org.HdrHistogram.LinearIterator, org.HdrHistogram.LogarithmicIterator, org.HdrHistogram.PercentileIterator, org.HdrHistogram.RecordedValuesIterator
Imports
java.util.ConcurrentModificationException, .Iterator, .NoSuchElementException

Used for iterating through histogram values.

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv long
pack-priv int
pack-priv final HistogramIterationValue
pack-priv long
private boolean
pack-priv AbstractHistogram
private double
pack-priv long
pack-priv long
pack-priv long
pack-priv long
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private boolean
pack-priv double
pack-priv double
pack-priv long
public boolean

Returns:

true if the iterator has more elements.
hasNext
()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.
pack-priv abstract void
pack-priv void
public HistogramIterationValue

Returns:

the HistogramIterationValue associated with the next element in the iteration.
next
()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
pack-priv abstract boolean

Returns:

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

public void
remove()

Overrides default java.util.Iterator.remove.

Not supported.
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

arrayTotalCountback to summary
pack-priv long arrayTotalCount
countAtThisValueback to summary
pack-priv long countAtThisValue
currentIndexback to summary
pack-priv int currentIndex
currentIterationValueback to summary
pack-priv final HistogramIterationValue currentIterationValue
currentValueAtIndexback to summary
pack-priv long currentValueAtIndex
freshSubBucketback to summary
private boolean freshSubBucket
histogramback to summary
pack-priv AbstractHistogram histogram
integerToDoubleValueConversionRatioback to summary
private double integerToDoubleValueConversionRatio
nextValueAtIndexback to summary
pack-priv long nextValueAtIndex
prevValueIteratedToback to summary
pack-priv long prevValueIteratedTo
totalCountToCurrentIndexback to summary
pack-priv long totalCountToCurrentIndex
totalCountToPrevIndexback to summary
pack-priv long totalCountToPrevIndex
totalValueToCurrentIndexback to summary
pack-priv long totalValueToCurrentIndex

Constructor Detail

AbstractHistogramIteratorback to summary
pack-priv AbstractHistogramIterator()

Method Detail

exhaustedSubBucketsback to summary
private boolean exhaustedSubBuckets()
getPercentileIteratedFromback to summary
pack-priv double getPercentileIteratedFrom()
getPercentileIteratedToback to summary
pack-priv double getPercentileIteratedTo()
getValueIteratedToback to summary
pack-priv long getValueIteratedTo()
hasNextback to summary
public boolean hasNext()

Implements 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 iterator has more elements.

Annotations
@Override
incrementIterationLevelback to summary
pack-priv abstract void incrementIterationLevel()
incrementSubBucketback to summary
pack-priv void incrementSubBucket()
nextback to summary
public HistogramIterationValue next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Returns:HistogramIterationValue

the HistogramIterationValue associated with the next element in the iteration.

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

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

removeback to summary
public void remove()

Overrides default java.util.Iterator.remove.

Not supported. Will throw an UnsupportedOperationException.

Annotations
@Override
resetIteratorback to summary
pack-priv void resetIterator(final AbstractHistogram histogram)