public final class EWAHIterator
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private int |
pointer
The pointer represent the location of the current running length word
in the array of words (embedded in the rlw attribute).
|
(package private) RunningLengthWord |
rlw
The current running length word.
|
private int |
size
The size in words.
|
Modifier | Constructor and Description |
---|---|
|
EWAHIterator(Buffer buffer)
Instantiates a new EWAH iterator.
|
private |
EWAHIterator(int pointer,
RunningLengthWord rlw,
int size) |
Modifier and Type | Method and Description |
---|---|
Buffer |
buffer()
Access to the buffer
|
EWAHIterator |
clone() |
static EWAHIterator |
getEWAHIterator(EWAHCompressedBitmap bitmap)
Allow expert developers to instantiate an EWAHIterator.
|
boolean |
hasNext()
Checks for next.
|
int |
literalWords()
Position of the literal words represented by this running length
word.
|
RunningLengthWord |
next()
Next running length word.
|
private int pointer
final RunningLengthWord rlw
private final int size
public EWAHIterator(Buffer buffer)
buffer
- the bufferprivate EWAHIterator(int pointer, RunningLengthWord rlw, int size)
public static EWAHIterator getEWAHIterator(EWAHCompressedBitmap bitmap)
bitmap
- we want to iterate overpublic Buffer buffer()
public int literalWords()
public boolean hasNext()
public RunningLengthWord next()
public EWAHIterator clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException