javaewah32
Interface BitmapStorage32

All Known Implementing Classes:
BitCounter32, EWAHCompressedBitmap32, NonEmptyVirtualStorage32

public interface BitmapStorage32

Low level bitset writing methods.

Since:
0.5.0
Author:
Daniel Lemire and David McIntosh

Method Summary
 void add(int newdata)
          Adding words directly to the bitmap (for expert use).
 void addStreamOfDirtyWords(int[] data, int start, int number)
          if you have several dirty words to copy over, this might be faster.
 void addStreamOfEmptyWords(boolean v, int number)
          For experts: You want to add many zeroes or ones? This is the method you use.
 void addStreamOfNegatedDirtyWords(int[] data, int start, int number)
          Like "addStreamOfDirtyWords" but negates the words being added.
 void setSizeInBits(int bits)
          directly set the sizeinbits field
 

Method Detail

add

void add(int 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

addStreamOfDirtyWords

void addStreamOfDirtyWords(int[] data,
                           int start,
                           int number)
if you have several dirty words to copy over, this might be faster.

Parameters:
data - the dirty words
start - the starting point in the array
number - the number of dirty words to add

addStreamOfEmptyWords

void addStreamOfEmptyWords(boolean v,
                           int number)
For experts: You want to add many zeroes or ones? This is the method you use.

Parameters:
v - zeros or ones
number - how many to words add

addStreamOfNegatedDirtyWords

void addStreamOfNegatedDirtyWords(int[] data,
                                  int start,
                                  int number)
Like "addStreamOfDirtyWords" but negates the words being added.

Parameters:
data - the dirty words
start - the starting point in the array
number - the number of dirty words to add

setSizeInBits

void setSizeInBits(int bits)
directly set the sizeinbits field

Parameters:
bits - number of bits


Copyright © 2012. All Rights Reserved.