public class WrappedImmutableRoaringBitmap extends Object implements ImmutableBitmap
Modifier | Constructor and Description |
---|---|
protected |
WrappedImmutableRoaringBitmap(ByteBuffer byteBuffer) |
|
WrappedImmutableRoaringBitmap(org.roaringbitmap.buffer.ImmutableRoaringBitmap immutableRoaringBitmap)
Wrap an ImmutableRoaringBitmap
|
Modifier and Type | Method and Description |
---|---|
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
|
org.roaringbitmap.buffer.ImmutableRoaringBitmap |
getBitmap() |
ImmutableBitmap |
intersection(ImmutableBitmap otherBitmap)
Compute the bitwise-and of this bitmap with another bitmap.
|
boolean |
isEmpty() |
org.roaringbitmap.IntIterator |
iterator() |
int |
size() |
byte[] |
toBytes() |
String |
toString() |
ImmutableBitmap |
union(ImmutableBitmap otherBitmap)
Compute the bitwise-or of this bitmap with another bitmap.
|
protected WrappedImmutableRoaringBitmap(ByteBuffer byteBuffer)
public WrappedImmutableRoaringBitmap(org.roaringbitmap.buffer.ImmutableRoaringBitmap immutableRoaringBitmap)
immutableRoaringBitmap
- bitmap to be wrappedpublic org.roaringbitmap.buffer.ImmutableRoaringBitmap getBitmap()
public byte[] toBytes()
toBytes
in interface ImmutableBitmap
public int compareTo(ImmutableBitmap other)
compareTo
in interface ImmutableBitmap
public org.roaringbitmap.IntIterator iterator()
iterator
in interface ImmutableBitmap
public int size()
size
in interface ImmutableBitmap
public boolean isEmpty()
isEmpty
in interface ImmutableBitmap
public ImmutableBitmap union(ImmutableBitmap otherBitmap)
ImmutableBitmap
union
in interface ImmutableBitmap
otherBitmap
- other bitmappublic boolean get(int value)
ImmutableBitmap
get
in interface ImmutableBitmap
value
- the position to checkpublic ImmutableBitmap intersection(ImmutableBitmap otherBitmap)
ImmutableBitmap
intersection
in interface ImmutableBitmap
otherBitmap
- other bitmappublic ImmutableBitmap difference(ImmutableBitmap otherBitmap)
ImmutableBitmap
difference
in interface ImmutableBitmap
otherBitmap
- other bitmapCopyright © 2011–2017. All rights reserved.