Package org.roaringbitmap
Interface RoaringBitmapWriter<T extends BitmapDataProvider>
- All Superinterfaces:
Supplier<T>
- All Known Implementing Classes:
ConstantMemoryContainerAppender,ContainerAppender
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classRoaringBitmapWriter.Wizard<C extends WordStorage<C>,T extends BitmapDataProvider & AppendableStorage<C>> -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int value)buffers a value to be added to the bitmap.voidadd(long min, long max)Add a range to the bitmapvoidaddMany(int... values)Adds many values to the bitmap.voidflush()Flushes all pending changes to the bitmap.default Tget()flushes any pending changes to the bitmap and returns the bitmapGets the bitmap being written to.voidreset()Resets the writer so it can be reused, must release the reference to the underlying bitmapwriter()
-
Method Details
-
writer
-
bufferWriter
-
getUnderlying
T getUnderlying()Gets the bitmap being written to.- Returns:
- the bitmap
-
add
void add(int value)buffers a value to be added to the bitmap.- Parameters:
value- the value
-
add
void add(long min, long max)Add a range to the bitmap- Parameters:
min- the inclusive min valuemax- the exclusive max value
-
addMany
void addMany(int... values)Adds many values to the bitmap.- Parameters:
values- the values to add
-
flush
void flush()Flushes all pending changes to the bitmap. -
get
flushes any pending changes to the bitmap and returns the bitmap- Specified by:
getin interfaceSupplier<T extends BitmapDataProvider>- Returns:
- the underlying bitmap
-
reset
void reset()Resets the writer so it can be reused, must release the reference to the underlying bitmap
-