public class OrderedWriter extends Object
//...
RoaringBitmap r = new RoaringBitmap();
OrderedWriter ow = new OrderedWriter(r);
for (int i :....) {
ow.add(i);
}
ow.flush(); // important
| Constructor and Description |
|---|
OrderedWriter(RoaringBitmap underlying)
Initialize an OrderedWriter with a receiving bitmap
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value)
Adds the value to the underlying bitmap.
|
void |
flush()
Ensures that any buffered additions are flushed to the underlying bitmap.
|
RoaringBitmap |
getUnderlying()
Grab a reference to the underlying bitmap
|
public OrderedWriter(RoaringBitmap underlying)
underlying - bitmap where the data gets writtenpublic RoaringBitmap getUnderlying()
public void add(int value)
value - the value to add.IllegalStateException - if values are not added in increasing orderpublic void flush()
Copyright © 2017. All rights reserved.