Top Description Fields Constructors Methods
org.HdrHistogram

public Class LinearIterator

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

Used for iterating through histogram values in linear steps. The iteration is performed in steps of valueUnitsPerBucket in size, terminating when all recorded histogram values are exhausted. Note that each iteration "bucket" includes values up to and including the next bucket boundary value.

Field Summary

Modifier and TypeField and Description
private long
private long
private long
Inherited from org.HdrHistogram.AbstractHistogramIterator:
arrayTotalCountcountAtThisValuecurrentIndexcurrentIterationValuecurrentValueAtIndexhistogramnextValueAtIndexprevValueIteratedTototalCountToCurrentIndextotalCountToPrevIndextotalValueToCurrentIndex

Constructor Summary

AccessConstructor and Description
public
LinearIterator(final AbstractHistogram
The histogram this iterator will operate on
histogram
,
final long
The size (in value units) of each bucket iteration.
valueUnitsPerBucket
)

Method Summary

Modifier and TypeMethod and Description
pack-priv long
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(final long
The size (in value units) of each bucket iteration.
valueUnitsPerBucket
)

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

private void
reset(final AbstractHistogram histogram, final long valueUnitsPerBucket)

Inherited from org.HdrHistogram.AbstractHistogramIterator:
getPercentileIteratedFromgetPercentileIteratedToincrementSubBucketnextremoveresetIterator

Field Detail

currentStepHighestValueReportingLevelback to summary
private long currentStepHighestValueReportingLevel
currentStepLowestValueReportingLevelback to summary
private long currentStepLowestValueReportingLevel
valueUnitsPerBucketback to summary
private long valueUnitsPerBucket

Constructor Detail

LinearIteratorback to summary
public LinearIterator(final AbstractHistogram histogram, final long valueUnitsPerBucket)
Parameters
histogram:AbstractHistogram

The histogram this iterator will operate on

valueUnitsPerBucket:long

The size (in value units) of each bucket iteration.

Method Detail

getValueIteratedToback to summary
pack-priv long getValueIteratedTo()

Overrides org.HdrHistogram.AbstractHistogramIterator.getValueIteratedTo.

Annotations
@Override
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(final long valueUnitsPerBucket)

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

Parameters
valueUnitsPerBucket:long

The size (in value units) of each bucket iteration.

resetback to summary
private void reset(final AbstractHistogram histogram, final long valueUnitsPerBucket)