public class BufferedIterator extends Object implements IteratingRLW, Cloneable
| Constructor and Description |
|---|
BufferedIterator(CloneableIterator<EWAHIterator> iterator)
Instantiates a new iterating buffered running length word.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedIterator |
clone() |
void |
discardFirstWords(long x)
Discard first words, iterating to the next running length word if
needed.
|
void |
discardRunningWords()
Discard all running words
|
long |
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.
|
long |
getRunningLength()
Gets the running length.
|
boolean |
next()
Move to the next RunningLengthWord
|
long |
size()
Size in uncompressed words of the current running length word.
|
public BufferedIterator(CloneableIterator<EWAHIterator> iterator)
iterator - iteratorpublic void discardFirstWords(long x)
discardFirstWords in interface IteratingRLWx - the number of words to be discardedpublic void discardRunningWords()
IteratingRLWdiscardRunningWords in interface IteratingRLWpublic boolean next()
next in interface IteratingRLWpublic long getLiteralWordAt(int index)
getLiteralWordAt in interface IteratingRLWindex - zero based indexpublic int getNumberOfLiteralWords()
getNumberOfLiteralWords in interface IteratingRLWpublic boolean getRunningBit()
getRunningBit in interface IteratingRLWpublic long getRunningLength()
getRunningLength in interface IteratingRLWpublic long size()
size in interface IteratingRLWpublic BufferedIterator clone() throws CloneNotSupportedException
clone in interface IteratingRLWclone in class ObjectCloneNotSupportedException - this should not be thrown in theoryCopyright © 2015. All Rights Reserved.