public class BufferedIterator32 extends java.lang.Object implements IteratingRLW32, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
private IteratingBufferedRunningLengthWord32 |
iteratingBrlw |
private CloneableIterator<EWAHIterator32> |
masterIterator |
| Constructor and Description |
|---|
BufferedIterator32(CloneableIterator<EWAHIterator32> iterator)
Instantiates a new iterating buffered running length word.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedIterator32 |
clone() |
void |
discardFirstWords(int x)
Discard first words, iterating to the next running length word if
needed.
|
void |
discardRunningWords()
Discard all running words
|
int |
getLiteralWordAt(int index)
Get the nth literal word for the current running length word
|
int |
getNumberOfLiteralWords()
Gets the number of literal words for the current running length word.
|
boolean |
getRunningBit()
Gets the running bit.
|
int |
getRunningLength()
Gets the running length.
|
boolean |
next()
Move to the next RunningLengthWord
|
int |
size()
Size in uncompressed words of the current running length word.
|
private IteratingBufferedRunningLengthWord32 iteratingBrlw
private CloneableIterator<EWAHIterator32> masterIterator
public BufferedIterator32(CloneableIterator<EWAHIterator32> iterator)
iterator - iteratorpublic void discardFirstWords(int x)
discardFirstWords in interface IteratingRLW32x - the number of words to be discardedpublic void discardRunningWords()
IteratingRLW32discardRunningWords in interface IteratingRLW32public boolean next()
next in interface IteratingRLW32public int getLiteralWordAt(int index)
getLiteralWordAt in interface IteratingRLW32index - zero based indexpublic int getNumberOfLiteralWords()
getNumberOfLiteralWords in interface IteratingRLW32public boolean getRunningBit()
getRunningBit in interface IteratingRLW32public int getRunningLength()
getRunningLength in interface IteratingRLW32public int size()
size in interface IteratingRLW32public BufferedIterator32 clone() throws java.lang.CloneNotSupportedException
clone in interface IteratingRLW32clone in class java.lang.Objectjava.lang.CloneNotSupportedException - this should not be thrown in theory