public final class IteratingBufferedRunningLengthWord extends Object
Constructor and Description |
---|
IteratingBufferedRunningLengthWord(EWAHCompressedBitmap bitmap)
Instantiates a new iterating buffered running length word.
|
IteratingBufferedRunningLengthWord(EWAHIterator iterator)
Instantiates a new iterating buffered running length word.
|
Modifier and Type | Method and Description |
---|---|
void |
discardFirstWords(long x)
Discard first words, iterating to the next running length word if needed.
|
void |
discharge(BitmapStorage container)
Write out the remaining words
|
long |
discharge(BitmapStorage container,
long max)
Write out up to max words, returns how many were written
|
void |
dischargeAsEmpty(BitmapStorage container)
Write out the remain words, transforming them to zeroes.
|
long |
dischargeNegated(BitmapStorage container,
long max)
Write out up to max words (negated), returns how many were written
|
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.
|
long |
size()
Size in uncompressed words of the current running length word.
|
void |
writeLiteralWords(int numWords,
BitmapStorage container)
write the first N literal words to the target bitmap.
|
void |
writeNegatedLiteralWords(int numWords,
BitmapStorage container)
write the first N literal words (negated) to the target bitmap.
|
public IteratingBufferedRunningLengthWord(EWAHIterator iterator)
iterator
- iteratorpublic IteratingBufferedRunningLengthWord(EWAHCompressedBitmap bitmap)
iterator
- iteratorpublic void discardFirstWords(long x)
x
- the xpublic long discharge(BitmapStorage container, long max)
container
- target for writesmax
- maximal number of writespublic long dischargeNegated(BitmapStorage container, long max)
container
- target for writesmax
- maximal number of writespublic void dischargeAsEmpty(BitmapStorage container)
container
- target for writespublic void discharge(BitmapStorage container)
container
- target for writespublic long getLiteralWordAt(int index)
index
- zero based indexpublic int getNumberOfLiteralWords()
public boolean getRunningBit()
public long getRunningLength()
public long size()
public void writeLiteralWords(int numWords, BitmapStorage container)
numWords
- container
- public void writeNegatedLiteralWords(int numWords, BitmapStorage container)
numWords
- container
- Copyright © 2017. All rights reserved.