Package com.googlecode.javaewah
Class IntIteratorImpl
java.lang.Object
com.googlecode.javaewah.IntIteratorImpl
- All Implemented Interfaces:
IntIterator
The IntIteratorImpl is the 64 bit implementation of the IntIterator
interface, which efficiently returns the stream of integers represented by an
EWAHIterator.
- Since:
- 0.5.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Buffer
private final EWAHIterator
private boolean
private int
private int
private int
private long
private int
private int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ewahIter
-
buffer
-
position
private int position -
runningLength
private int runningLength -
word
private long word -
wordPosition
private int wordPosition -
wordLength
private int wordLength -
literalPosition
private int literalPosition -
hasNext
private boolean hasNext
-
-
Constructor Details
-
IntIteratorImpl
IntIteratorImpl(EWAHIterator ewahIter)
-
-
Method Details
-
moveToNext
public boolean moveToNext() -
hasNext
public boolean hasNext()Description copied from interface:IntIterator
Is there more?- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true, if there is more, false otherwise
-
next
public int next()Description copied from interface:IntIterator
Return the next integer- Specified by:
next
in interfaceIntIterator
- Returns:
- the integer
-
setRunningLengthWord
-
runningHasNext
private boolean runningHasNext() -
literalHasNext
private boolean literalHasNext()
-