Package org.HdrHistogram
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 Summary
FieldsModifier and TypeFieldDescription(package private) long(package private) long(package private) int(package private) final HistogramIterationValue(package private) longprivate boolean(package private) AbstractHistogramprivate double(package private) long(package private) long(package private) long(package private) long(package private) long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean(package private) double(package private) double(package private) longbooleanhasNext()Returns true if the iteration has more elements.(package private) abstract void(package private) voidnext()Returns the next element in the iteration.(package private) abstract booleanvoidremove()Not supported.(package private) voidresetIterator(AbstractHistogram histogram) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
histogram
AbstractHistogram 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
-
integerToDoubleValueConversionRatio
private double integerToDoubleValueConversionRatio
-
-
Constructor Details
-
AbstractHistogramIterator
AbstractHistogramIterator()
-
-
Method Details
-
resetIterator
-
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:
hasNextin interfaceIterator<HistogramIterationValue>- Returns:
- true if the iterator has more elements.
-
next
Returns the next element in the iteration.- Specified by:
nextin interfaceIterator<HistogramIterationValue>- Returns:
- the
HistogramIterationValueassociated with the next element in the iteration.
-
remove
public void remove()Not supported. Will throw anUnsupportedOperationException.- Specified by:
removein interfaceIterator<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()
-