| Modifier and Type | Field and Description |
|---|---|
| private BufferedRunningLengthWord32 | |
| private final Buffer32 | |
| private EWAHIterator32 | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | IteratingBufferedRunningLengthWord32(final EWAHIterator32
iterator iterator)Instantiates a new iterating buffered running length word. |
| public | IteratingBufferedRunningLengthWord32(final EWAHCompressedBitmap32
over which we want to iterate bitmap)Instantiates a new iterating buffered running length word. |
| Modifier and Type | Method and Description |
|---|---|
| public IteratingBufferedRunningLengthWord32 | clone()
Overrides java. Implements com. Creates and returns a copy of this object. |
| public void | discardFirstWords(int
the x x)Implements com. Discard first words, iterating to the next running length word if needed. |
| public void | discardLiteralWords(int
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 int | Returns: how many writtentarget for writes container, int maximal number of writes max)Write out up to max words, returns how many were written |
| public void | |
| protected static void | discharge(final BufferedRunningLengthWord32
the initial word initialWord, final EWAHIterator32 the iterator iterator, final BitmapStorage32 the container container)For internal use. |
| public void | dischargeAsEmpty(BitmapStorage32
target for writes container)Write out the remain words, transforming them to zeroes. |
| public int | Returns: how many writtentarget for writes container, int maximal number of writes max)Write out up to max words (negated), returns how many were written |
| public int | 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 int | Returns: the running lengthImplements com. Gets the running length. |
| public boolean | Returns: whether the move was possibleImplements com. Move to the next RunningLengthWord |
| public int | Returns: the intImplements com. Size in uncompressed words of the current running length word. |
| public void | writeLiteralWords(int
number of words to be written numWords, BitmapStorage32 where we write the data container)write the first N literal words to the target bitmap. |
| public void | writeNegatedLiteralWords(int
number of words to be written numWords, BitmapStorage32 where we write the data container)write the first N literal words (negated) to the target bitmap. |
| brlw | back to summary |
|---|---|
| private BufferedRunningLengthWord32 brlw | |
| buffer | back to summary |
|---|---|
| private final Buffer32 buffer | |
| iterator | back to summary |
|---|---|
| private EWAHIterator32 iterator | |
| literalWordStartPosition | back to summary |
|---|---|
| private int literalWordStartPosition | |
| IteratingBufferedRunningLengthWord32 | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord32(final EWAHIterator32 iterator) Instantiates a new iterating buffered running length word.
| |
| IteratingBufferedRunningLengthWord32 | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord32(final EWAHCompressedBitmap32 bitmap) Instantiates a new iterating buffered running length word.
| |
| clone | back to summary |
|---|---|
| public IteratingBufferedRunningLengthWord32 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(int x) Implements com. Discard first words, iterating to the next running length word if needed.
| |
| discardLiteralWords | back to summary |
|---|---|
| public void discardLiteralWords(int 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 int discharge(BitmapStorage32 container, int max) Write out up to max words, returns how many were written
| |
| discharge | back to summary |
|---|---|
| public void discharge(BitmapStorage32 container) Write out the remaining words
| |
| discharge | back to summary |
|---|---|
| protected static void discharge(final BufferedRunningLengthWord32 initialWord, final EWAHIterator32 iterator, final BitmapStorage32 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(BitmapStorage32 container) Write out the remain words, transforming them to zeroes.
| |
| dischargeNegated | back to summary |
|---|---|
| public int dischargeNegated(BitmapStorage32 container, int max) Write out up to max words (negated), returns how many were written
| |
| getLiteralWordAt | back to summary |
|---|---|
| public int 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 int 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 int size() Implements com. Size in uncompressed words of the current running length word.
| |
| writeLiteralWords | back to summary |
|---|---|
| public void writeLiteralWords(int numWords, BitmapStorage32 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, BitmapStorage32 container) write the first N literal words (negated) to the target bitmap. Does not discard the words or perform iteration.
| |