Top Description Fields Constructors Methods
com.googlecode.javaewah

pack-priv final Class ReverseIntIterator

extends Object
implements IntIterator
Class Inheritance
All Implemented Interfaces
com.googlecode.javaewah.IntIterator
Static Imports
com.googlecode.javaewah.EWAHCompressedBitmap.WORD_IN_BITS

The ReverseIntIterator is the 64 bit implementation of the IntIterator interface, which efficiently returns the stream of integers represented by a ReverseEWAHIterator in reverse order.
Author
Gregory Ssi-Yan-Kai

Field Summary

Modifier and TypeField and Description
private final Buffer
private final ReverseEWAHIterator
private boolean
private int
private int
private boolean
private int
private final int
private long
private int
private int

Constructor Summary

AccessConstructor and Description
pack-priv
ReverseIntIterator(ReverseEWAHIterator ewahIter, int sizeInBits)

Method Summary

Modifier and TypeMethod and Description
public boolean
private boolean
private boolean
public int
next()

Implements com.googlecode.javaewah.IntIterator.next.

Return the next integer

private boolean
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private final Buffer buffer
ewahIterback to summary
private final ReverseEWAHIterator ewahIter
hasNextback to summary
private boolean hasNext
literalPositionback to summary
private int literalPosition
positionback to summary
private int position
runningBitback to summary
private boolean runningBit
runningLengthback to summary
private int runningLength
sizeInBitsback to summary
private final int sizeInBits
wordback to summary
private long word
wordLengthback to summary
private int wordLength
wordPositionback to summary
private int wordPosition

Constructor Detail

ReverseIntIteratorback to summary
pack-priv ReverseIntIterator(ReverseEWAHIterator ewahIter, int sizeInBits)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements com.googlecode.javaewah.IntIterator.hasNext.

Doc from com.googlecode.javaewah.IntIterator.hasNext.

Is there more?

Returns:boolean

true, if there is more, false otherwise

Annotations
@Override
literalHasNextback to summary
private boolean literalHasNext()
moveToPreviousRLWback to summary
private boolean moveToPreviousRLW()
nextback to summary
public int next()

Implements com.googlecode.javaewah.IntIterator.next.

Doc from com.googlecode.javaewah.IntIterator.next.

Return the next integer

Returns:int

the integer

Annotations
@Override
runningHasNextback to summary
private boolean runningHasNext()
setRLWback to summary
private void setRLW(RunningLengthWord rlw)