Package com.googlecode.javaewah
Class ReverseEWAHIterator
java.lang.Object
com.googlecode.javaewah.ReverseEWAHIterator
The class ReverseEWAHIterator represents a special type of efficient iterator
iterating over (uncompressed) words of bits in reverse order.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute).The positions of running length words (embedded in the rlw attribute).protected RunningLengthWord
The current running length word. -
Constructor Summary
ConstructorsConstructorDescriptionReverseEWAHIterator
(Buffer buffer) Instantiates a new reverse EWAH iterator. -
Method Summary
-
Field Details
-
positions
The positions of running length words (embedded in the rlw attribute). -
pointer
private int pointerThe pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute). -
rlw
The current running length word.
-
-
Constructor Details
-
ReverseEWAHIterator
Instantiates a new reverse EWAH iterator.- Parameters:
buffer
- the buffer
-
-
Method Details
-
buffer
Access to the buffer- Returns:
- the buffer
-
position
public int position()Position of the current running length word.- Returns:
- the int
-
hasPrevious
public boolean hasPrevious()Checks for previous.- Returns:
- true, if successful
-
previous
Previous running length word.- Returns:
- the running length word
-