Top Description Methods
com.googlecode.javaewah32

public Interface BitmapStorage32

Known Direct Implementers
com.googlecode.javaewah32.EWAHCompressedBitmap32, com.googlecode.javaewah32.NonEmptyVirtualStorage32, com.googlecode.javaewah32.BitCounter32

Low level bitset writing methods.
Author
Daniel Lemire and David McIntosh
Since
0.5.0

Method Summary

Modifier and TypeMethod and Description
public void
addLiteralWord(final int
the word
newData
)

Adding literal words directly to the bitmap (for expert use).

public void
addStreamOfEmptyWords(final boolean
zeros or ones
v
,
final int
how many to words add
number
)

For experts: You want to add many zeroes or ones?

public void
addStreamOfLiteralWords(final Buffer32
the buffer wrapping the literal words
buffer
,
final int
the starting point in the array
start
,
final int
the number of literal words to add
number
)

if you have several literal words to copy over, this might be faster.

public void
addStreamOfNegatedLiteralWords(final Buffer32
the buffer wrapping the literal words
buffer
,
final int
the starting point in the array
start
,
final int
the number of literal words to add
number
)

Like "addStreamOfLiteralWords" but negates the words being added.

public void
addWord(final int
the word
newData
)

Adding words directly to the bitmap (for expert use).

public void
clear()

Empties the container.

public void
setSizeInBitsWithinLastWord(final int
the size in bits
size
)

Sets the size in bits of the bitmap as an *uncompressed* bitmap.

Method Detail

addLiteralWordback to summary
public void addLiteralWord(final int newData)

Adding literal words directly to the bitmap (for expert use).

Parameters
newData:int

the word

addStreamOfEmptyWordsback to summary
public void addStreamOfEmptyWords(final boolean v, final int number)

For experts: You want to add many zeroes or ones? This is the method you use.

Parameters
v:boolean

zeros or ones

number:int

how many to words add

addStreamOfLiteralWordsback to summary
public void addStreamOfLiteralWords(final Buffer32 buffer, final int start, final int number)

if you have several literal words to copy over, this might be faster.

Parameters
buffer:Buffer32

the buffer wrapping the literal words

start:int

the starting point in the array

number:int

the number of literal words to add

addStreamOfNegatedLiteralWordsback to summary
public void addStreamOfNegatedLiteralWords(final Buffer32 buffer, final int start, final int number)

Like "addStreamOfLiteralWords" but negates the words being added.

Parameters
buffer:Buffer32

the buffer wrapping the literal words

start:int

the starting point in the array

number:int

the number of literal words to add

addWordback to summary
public void addWord(final 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:int

the word

clearback to summary
public void clear()

Empties the container.

setSizeInBitsWithinLastWordback to summary
public void setSizeInBitsWithinLastWord(final int size)

Sets the size in bits of the bitmap as an *uncompressed* bitmap. Normally, this is used to reduce the size of the bitmaps within the scope of the last word. Specifically, this means that (sizeInBits()+31)/32 must be equal to (size+31)/32. If needed, the bitmap can be further padded with zeroes.

Parameters
size:int

the size in bits