| Modifier and Type | Field and Description |
|---|---|
| private BufferedRunningLengthWord | |
| private final Buffer | |
| private EWAHIterator | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | IteratingBufferedRunningLengthWord(final EWAHIterator
iterator iterator)Instantiates a new iterating buffered running length word. |
| public | IteratingBufferedRunningLengthWord(final EWAHCompressedBitmap
over which we want to iterate bitmap)Instantiates a new iterating buffered running length word. |
| Modifier and Type | Method and Description |
|---|---|
| public IteratingBufferedRunningLengthWord | clone()
Overrides java. Implements com. Creates and returns a copy of this object. |
| public void | discardFirstWords(long
the number of words to be discarded x)Implements com. Discard first words, iterating to the next running length word if needed. |
| public void | discardLiteralWords(long
the number of words to discard x)Implements com. Discard x literal words (assumes that there is no running word) |
| public void | discardRunningWords()
Implements com. Discard all running words |
| public long | Returns: how many writtentarget for writes container, long maximal number of writes max)Write out up to max words, returns how many were written |
| public void | |
| private static void | discharge(final BufferedRunningLengthWord
the initial word initialWord, final EWAHIterator the iterator iterator, final BitmapStorage the container container)For internal use. |
| public void | dischargeAsEmpty(BitmapStorage
target for writes container)Write out the remain words, transforming them to zeroes. |
| public long | Returns: how many writtentarget for writes container, long maximal number of writes max)Write out up to max words (negated), returns how many were written |
| public long | Returns: the literal wordzero based index index)Implements com. Get the nth literal word for the current running length word |
| public int | Returns: the number of literal wordsImplements com. Gets the number of literal words for the current running length word. |
| public boolean | Returns: the running bitImplements com. Gets the running bit. |
| public long | Returns: the running lengthImplements com. Gets the running length. |
| public boolean | Returns: whether the move was possibleImplements com. Move to the next RunningLengthWord |
| public long | Returns: the longImplements com. Size in uncompressed words of the current running length word. |
| public void | writeLiteralWords(int
number of words to be written numWords, BitmapStorage where we write container)write the first N literal words to the target bitmap. |
| public void | writeNegatedLiteralWords(int
number of words to be written numWords, BitmapStorage where we write container)write the first N literal words (negated) to the target bitmap. |
| brlw | back to summary |
|---|---|
| private BufferedRunningLengthWord brlw | |
| buffer | back to summary |
|---|---|
| private final Buffer buffer | |
| iterator | back to summary |
|---|---|
| private EWAHIterator iterator | |
| literalWordStartPosition | back to summary |
|---|---|
| private int literalWordStartPosition | |
| IteratingBufferedRunningLengthWord | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord(final EWAHIterator iterator) Instantiates a new iterating buffered running length word.
| |
| IteratingBufferedRunningLengthWord | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord(final EWAHCompressedBitmap bitmap) Instantiates a new iterating buffered running length word.
| |
| clone | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord clone() throws CloneNotSupportedException Overrides java. Implements com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| discardFirstWords | back to summary |
|---|---|
| public void discardFirstWords(long x) Implements com. Discard first words, iterating to the next running length word if needed.
| |
| discardLiteralWords | back to summary |
|---|---|
| public void discardLiteralWords(long x) Implements com. Doc from com. Discard x literal words (assumes that there is no running word)
| |
| discardRunningWords | back to summary |
|---|---|
| public void discardRunningWords() Implements com. Doc from com. Discard all running words
| |
| discharge | back to summary |
|---|---|
| public long discharge(BitmapStorage container, long max) Write out up to max words, returns how many were written
| |
| discharge | back to summary |
|---|---|
| public void discharge(BitmapStorage container) Write out the remaining words
| |
| discharge | back to summary |
|---|---|
| private static void discharge(final BufferedRunningLengthWord initialWord, final EWAHIterator iterator, final BitmapStorage container) For internal use. (One could use the non-static discharge method instead, but we expect them to be slower.)
| |
| dischargeAsEmpty | back to summary |
|---|---|
| public void dischargeAsEmpty(BitmapStorage container) Write out the remain words, transforming them to zeroes.
| |
| dischargeNegated | back to summary |
|---|---|
| public long dischargeNegated(BitmapStorage container, long max) Write out up to max words (negated), returns how many were written
| |
| getLiteralWordAt | back to summary |
|---|---|
| public long getLiteralWordAt(int index) Implements com. Get the nth literal word for the current running length word
| |
| getNumberOfLiteralWords | back to summary |
|---|---|
| public int getNumberOfLiteralWords() Implements com. Gets the number of literal words for the current running length word.
| |
| getRunningBit | back to summary |
|---|---|
| public boolean getRunningBit() Implements com. Gets the running bit.
| |
| getRunningLength | back to summary |
|---|---|
| public long getRunningLength() Implements com. Gets the running length.
| |
| next | back to summary |
|---|---|
| public boolean next() Implements com. Move to the next RunningLengthWord
| |
| size | back to summary |
|---|---|
| public long size() Implements com. Size in uncompressed words of the current running length word.
| |
| writeLiteralWords | back to summary |
|---|---|
| public void writeLiteralWords(int numWords, BitmapStorage container) write the first N literal words to the target bitmap. Does not discard the words or perform iteration.
| |
| writeNegatedLiteralWords | back to summary |
|---|---|
| public void writeNegatedLiteralWords(int numWords, BitmapStorage container) write the first N literal words (negated) to the target bitmap. Does not discard the words or perform iteration.
| |