Top Description Methods
com.googlecode.javaewah

public Interface LogicalElement<T>

Known Direct Implementers
com.googlecode.javaewah32.EWAHCompressedBitmap32, com.googlecode.javaewah.EWAHCompressedBitmap
Type Parameters
<T>
the type of element (e.g., a bitmap class)

A prototypical model for bitmaps. Used by the class FastAggregation. Users should probably not be concerned by this class.
Author
Daniel Lemire

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the result of the operation
and
(T
element
le
)

Compute the bitwise logical and

public T

Returns:

the result of the operation
andNot
(T
element
le
)

Compute the bitwise logical and not

public T

Returns:

the result of the operation
compose
(T
another element
le
)

Compute the composition

public void
not()

Compute the bitwise logical not (in place)

public T

Returns:

the result of the operation
or
(T
another element
le
)

Compute the bitwise logical or

public int

Returns:

the number of bits represented by this element
sizeInBits
()

How many logical bits does this element represent?

public int

Returns:

How many bytes
sizeInBytes
()

Should report the storage requirement

public T

Returns:

the result of the operation
xor
(T
element
le
)

Compute the bitwise logical Xor

Method Detail

andback to summary
public T and(T le)

Compute the bitwise logical and

Parameters
le:T

element

Returns:T

the result of the operation

andNotback to summary
public T andNot(T le)

Compute the bitwise logical and not

Parameters
le:T

element

Returns:T

the result of the operation

composeback to summary
public T compose(T le)

Compute the composition

Parameters
le:T

another element

Returns:T

the result of the operation

notback to summary
public void not()

Compute the bitwise logical not (in place)

orback to summary
public T or(T le)

Compute the bitwise logical or

Parameters
le:T

another element

Returns:T

the result of the operation

sizeInBitsback to summary
public int sizeInBits()

How many logical bits does this element represent?

Returns:int

the number of bits represented by this element

sizeInBytesback to summary
public int sizeInBytes()

Should report the storage requirement

Returns:int

How many bytes

Since
0.6.2
xorback to summary
public T xor(T le)

Compute the bitwise logical Xor

Parameters
le:T

element

Returns:T

the result of the operation