public class WrappedConciseBitmap extends Object implements MutableBitmap
| Constructor and Description |
|---|
WrappedConciseBitmap()
Create a new WrappedConciseBitmap wrapping an empty ConciseSet
|
WrappedConciseBitmap(ConciseSet conciseSet)
Create a bitmap wrappign the given bitmap
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int entry)
Add the specified integer to the bitmap.
|
void |
and(MutableBitmap mutableBitmap)
Compute the bitwise-and of this bitmap with another bitmap.
|
void |
andNot(MutableBitmap mutableBitmap)
Compute the bitwise-andNot of this bitmap with another bitmap.
|
void |
clear()
Empties the content of this bitmap.
|
int |
compareTo(ImmutableBitmap other) |
ImmutableBitmap |
difference(ImmutableBitmap otherBitmap)
Compute the bitwise-andNot of this bitmap with another bitmap.
|
boolean |
get(int value)
Returns true if the bit at position value is set
|
int |
getSizeInBytes()
Return the size in bytes for the purpose of serialization to a ByteBuffer.
|
ImmutableBitmap |
intersection(ImmutableBitmap otherBitmap)
Compute the bitwise-and of this bitmap with another bitmap.
|
boolean |
isEmpty() |
org.roaringbitmap.IntIterator |
iterator() |
void |
or(MutableBitmap mutableBitmap)
Compute the bitwise-or of this bitmap with another bitmap.
|
void |
remove(int entry)
Remove the specified integer to the bitmap.
|
void |
serialize(ByteBuffer buffer)
Write out a serialized (Immutable) version of the bitmap to the ByteBuffer.
|
int |
size() |
byte[] |
toBytes() |
String |
toString() |
ImmutableBitmap |
union(ImmutableBitmap otherBitmap)
Compute the bitwise-or of this bitmap with another bitmap.
|
void |
xor(MutableBitmap mutableBitmap)
Compute the bitwise-xor of this bitmap with another bitmap.
|
public WrappedConciseBitmap()
public WrappedConciseBitmap(ConciseSet conciseSet)
conciseSet - bitmap to be wrappedpublic byte[] toBytes()
toBytes in interface ImmutableBitmappublic int compareTo(ImmutableBitmap other)
compareTo in interface ImmutableBitmappublic void clear()
MutableBitmapclear in interface MutableBitmappublic void or(MutableBitmap mutableBitmap)
MutableBitmapor in interface MutableBitmapmutableBitmap - other bitmappublic void and(MutableBitmap mutableBitmap)
MutableBitmapand in interface MutableBitmapmutableBitmap - other bitmappublic void xor(MutableBitmap mutableBitmap)
MutableBitmapxor in interface MutableBitmapmutableBitmap - other bitmappublic void andNot(MutableBitmap mutableBitmap)
MutableBitmapandNot in interface MutableBitmapmutableBitmap - other bitmappublic int getSizeInBytes()
MutableBitmapgetSizeInBytes in interface MutableBitmappublic void add(int entry)
MutableBitmapadd in interface MutableBitmapentry - integer to be addedpublic int size()
size in interface ImmutableBitmappublic void serialize(ByteBuffer buffer)
MutableBitmapserialize in interface MutableBitmapbuffer - where we writepublic void remove(int entry)
MutableBitmapremove in interface MutableBitmapentry - integer to be removepublic org.roaringbitmap.IntIterator iterator()
iterator in interface ImmutableBitmappublic boolean isEmpty()
isEmpty in interface ImmutableBitmappublic ImmutableBitmap union(ImmutableBitmap otherBitmap)
ImmutableBitmapunion in interface ImmutableBitmapotherBitmap - other bitmappublic ImmutableBitmap intersection(ImmutableBitmap otherBitmap)
ImmutableBitmapintersection in interface ImmutableBitmapotherBitmap - other bitmappublic ImmutableBitmap difference(ImmutableBitmap otherBitmap)
ImmutableBitmapdifference in interface ImmutableBitmapotherBitmap - other bitmappublic boolean get(int value)
ImmutableBitmapget in interface ImmutableBitmapvalue - the position to checkCopyright © 2011–2017. All rights reserved.