Package org.roaringbitmap
Interface BitmapDataProvider
-
- All Superinterfaces:
ImmutableBitmapDataProvider
- All Known Implementing Classes:
FastRankRoaringBitmap,MutableRoaringBitmap,RoaringBitmap
public interface BitmapDataProvider extends ImmutableBitmapDataProvider
Representing a general bitmap interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(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, select, serialize, serialize, serializedSizeInBytes, toArray
-
-
-
-
Method Detail
-
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.
-
-