Package org.roaringbitmap
Interface BitmapDataProvider
- All Superinterfaces:
ImmutableBitmapDataProvider
- All Known Implementing Classes:
FastRankRoaringBitmap,MutableRoaringBitmap,RoaringBitmap
Representing a general bitmap interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.roaringbitmap.ImmutableBitmapDataProvider
ImmutableBitmapDataProvider.RoaringOfInt -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int x)set the value to "true", whether it already appears or not.voidadd(long min, long sup)Add a range of values to the bitmapvoidremove(int x)If present remove the specified integers (effectively, sets its bit value to false)voidtrim()Recover allocated but unused memory.Methods inherited from interface org.roaringbitmap.ImmutableBitmapDataProvider
contains, first, forEach, getBatchIterator, getCardinality, getIntIterator, getLongCardinality, getLongSizeInBytes, getReverseIntIterator, getSizeInBytes, isEmpty, last, limit, nextAbsentValue, nextValue, previousAbsentValue, previousValue, rangeCardinality, rank, rankLong, reverseStream, select, serialize, serialize, serializedSizeInBytes, stream, toArray
-
Method Details
-
add
void add(int x)set the value to "true", whether it already appears or not.- Parameters:
x- integer value
-
add
void add(long min, long sup)Add a range of values to the bitmap- Parameters:
min- the inclusive minimum valuesup- the exclusive maximum value
-
remove
void remove(int x)If present remove the specified integers (effectively, sets its bit value to false)- Parameters:
x- integer value representing the index in a bitmap
-
trim
void trim()Recover allocated but unused memory.
-