Package com.googlecode.javaewah32
Class IntIteratorImpl32
- java.lang.Object
-
- com.googlecode.javaewah32.IntIteratorImpl32
-
- All Implemented Interfaces:
IntIterator
final class IntIteratorImpl32 extends java.lang.Object implements IntIterator
The IntIteratorImpl32 is the 32 bit implementation of the IntIterator interface, which efficiently returns the stream of integers represented by an EWAHIterator32.- Since:
- 0.5.6
-
-
Field Summary
Fields Modifier and Type Field Description private Buffer32
buffer
private EWAHIterator32
ewahIter
private boolean
hasnext
private int
literalPosition
private int
position
private int
runningLength
private int
word
private int
wordLength
private int
wordPosition
-
Constructor Summary
Constructors Constructor Description IntIteratorImpl32(EWAHIterator32 ewahIter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Is there more?private boolean
literalHasNext()
boolean
moveToNext()
int
next()
Return the next integerprivate boolean
runningHasNext()
private void
setRunningLengthWord(RunningLengthWord32 rlw)
-
-
-
Field Detail
-
ewahIter
private final EWAHIterator32 ewahIter
-
buffer
private final Buffer32 buffer
-
position
private int position
-
runningLength
private int runningLength
-
word
private int word
-
wordPosition
private int wordPosition
-
wordLength
private int wordLength
-
literalPosition
private int literalPosition
-
hasnext
private boolean hasnext
-
-
Constructor Detail
-
IntIteratorImpl32
IntIteratorImpl32(EWAHIterator32 ewahIter)
-
-
Method Detail
-
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
private void setRunningLengthWord(RunningLengthWord32 rlw)
-
runningHasNext
private boolean runningHasNext()
-
literalHasNext
private boolean literalHasNext()
-
-