public interface RoaringBitmapWriter<T extends BitmapDataProvider>
extends java.util.function.Supplier<T>
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
RoaringBitmapWriter.BufferWizard |
static class |
RoaringBitmapWriter.FastRankRoaringBitmapWizard |
static class |
RoaringBitmapWriter.RoaringBitmapWizard |
static class |
RoaringBitmapWriter.RoaringWizard<T extends RoaringBitmap> |
static class |
RoaringBitmapWriter.Wizard<C extends WordStorage<C>,T extends BitmapDataProvider & AppendableStorage<C>> |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(int value)
buffers a value to be added to the bitmap.
|
void |
add(long min,
long max)
Add a range to the bitmap
|
void |
addMany(int... values)
Adds many values to the bitmap.
|
static RoaringBitmapWriter.Wizard<MappeableContainer,MutableRoaringBitmap> |
bufferWriter() |
void |
flush()
Flushes all pending changes to the bitmap.
|
default T |
get()
flushes any pending changes to the bitmap and returns the bitmap
|
T |
getUnderlying()
Gets the bitmap being written to.
|
void |
reset()
Resets the writer so it can be reused, must release the reference to the underlying bitmap
|
static RoaringBitmapWriter.Wizard<Container,RoaringBitmap> |
writer() |
static RoaringBitmapWriter.Wizard<Container,RoaringBitmap> writer()
static RoaringBitmapWriter.Wizard<MappeableContainer,MutableRoaringBitmap> bufferWriter()
T getUnderlying()
void add(int value)
value - the valuevoid add(long min,
long max)
min - the inclusive min valuemax - the exclusive max valuevoid addMany(int... values)
values - the values to addvoid flush()
default T get()
get 在接口中 java.util.function.Supplier<T extends BitmapDataProvider>void reset()