Package org.roaringbitmap.buffer
Class BufferBitSetUtil
java.lang.Object
org.roaringbitmap.buffer.BufferBitSetUtil
This class provides convenience functions to manipulate BitSet and MutableRoaringBitmap objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableRoaringBitmapbitmapOf(long[] words)Generate a MutableRoaringBitmap out of a long[], each long using little-endian representation of its bitsstatic MutableRoaringBitmapGenerate a MutableRoaringBitmap out of a BitSetstatic booleanequals(BitSet bitset, ImmutableRoaringBitmap bitmap)Compares a RoaringBitmap and a BitSet.
-
Constructor Details
-
BufferBitSetUtil
public BufferBitSetUtil()
-
-
Method Details
-
bitmapOf
Generate a MutableRoaringBitmap out of a BitSet- Parameters:
bitSet- original bitset (will not be modified)- Returns:
- roaring bitmap equivalent to BitSet
-
bitmapOf
Generate a MutableRoaringBitmap out of a long[], each long using little-endian representation of its bits- Parameters:
words- array of longs (will not be modified)- Returns:
- roaring bitmap
- See Also:
for an equivalent
-
equals
Compares a RoaringBitmap and a BitSet. They are equal if and only if they contain the same set of integers.- Parameters:
bitset- first object to be comparedbitmap- second object to be compared- Returns:
- whether they are equal
-