Package com.googlecode.javaewah
Interface BitmapStorage
-
- All Known Implementing Classes:
BitCounter,EWAHCompressedBitmap,NonEmptyVirtualStorage
public interface BitmapStorageLow level bitset writing methods.- Since:
- 0.4.0
- Author:
- David McIntosh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(long newdata)Adding words directly to the bitmap (for expert use).voidaddStreamOfEmptyWords(boolean v, long number)For experts: You want to add many zeroes or ones? This is the method you use.voidaddStreamOfLiteralWords(long[] data, int start, int number)if you have several literal words to copy over, this might be faster.voidaddStreamOfNegatedLiteralWords(long[] data, int start, int number)Like "addStreamOfLiteralWords" but negates the words being added.voidsetSizeInBits(int bits)directly set the sizeinbits field
-
-
-
Method Detail
-
add
void add(long newdata)
Adding words directly to the bitmap (for expert use). This is normally how you add data to the array. So you add bits in streams of 8*8 bits.- Parameters:
newdata- the word
-
addStreamOfLiteralWords
void addStreamOfLiteralWords(long[] data, int start, int number)if you have several literal words to copy over, this might be faster.- Parameters:
data- the literal wordsstart- the starting point in the arraynumber- the number of literal words to add
-
addStreamOfEmptyWords
void addStreamOfEmptyWords(boolean v, long number)For experts: You want to add many zeroes or ones? This is the method you use.- Parameters:
v- zeros or onesnumber- how many to words add
-
addStreamOfNegatedLiteralWords
void addStreamOfNegatedLiteralWords(long[] data, int start, int number)Like "addStreamOfLiteralWords" but negates the words being added.- Parameters:
data- the literal wordsstart- the starting point in the arraynumber- the number of literal words to add
-
setSizeInBits
void setSizeInBits(int bits)
directly set the sizeinbits field- Parameters:
bits- number of bits
-
-