Package org.roaringbitmap.longlong
Interface LongBitmapDataProvider
- All Superinterfaces:
ImmutableLongBitmapDataProvider
- All Known Implementing Classes:
Roaring64Bitmap,Roaring64NavigableMap
Representing a general bitmap interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.roaringbitmap.longlong.ImmutableLongBitmapDataProvider
ImmutableLongBitmapDataProvider.RoaringOfLong -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLong(long x)set the value to "true", whether it already appears or not.voidremoveLong(long 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.longlong.ImmutableLongBitmapDataProvider
contains, forEach, getLongCardinality, getLongIterator, getLongSizeInBytes, getReverseLongIterator, getSizeInBytes, isEmpty, limit, rankLong, reverseStream, select, serialize, serializedSizeInBytes, stream, toArray
-
Method Details
-
addLong
void addLong(long x)set the value to "true", whether it already appears or not.- Parameters:
x- long value
-
removeLong
void removeLong(long x)If present remove the specified integers (effectively, sets its bit value to false)- Parameters:
x- long value representing the index in a bitmap
-
trim
void trim()Recover allocated but unused memory.
-