Top Description Methods
com.googlecode.javaewah

public Interface BitmapStorage

Known Direct Implementers
com.googlecode.javaewah.EWAHCompressedBitmap, com.googlecode.javaewah.NonEmptyVirtualStorage, com.googlecode.javaewah.BitCounter

Low level bitset writing methods.
Author
David McIntosh
Since
0.4.0

Method Summary

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

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

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

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

public void
addStreamOfLiteralWords(final Buffer
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 Buffer
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 long
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 long newData)

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

Parameters
newData:long

the word

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

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

Parameters
v:boolean

zeros or ones

number:long

how many to words add

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

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

Parameters
buffer:Buffer

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 Buffer buffer, final int start, final int number)

Like "addStreamOfLiteralWords" but negates the words being added.

Parameters
buffer:Buffer

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 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:long

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()+63)/64 must be equal to (size +63)/64. If needed, the bitmap can be further padded with zeroes.

Parameters
size:int

the size in bits