public static final class RangeBitmap.Appender
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(long value)
Adds the value and associates it with the current row index.
|
RangeBitmap |
build()
|
RangeBitmap |
build(java.nio.ByteBuffer buffer)
Converts the appender into an immutable range index, using the supplied ByteBuffer.
|
RangeBitmap |
build(java.util.function.IntFunction<java.nio.ByteBuffer> supplier)
Converts the appender into an immutable range index.
|
void |
clear()
Call this to reuse the appender and its buffers
|
void |
serialize(java.nio.ByteBuffer buffer)
Serializes the bitmap to the buffer without materialising it.
|
int |
serializedSizeInBytes()
Returns the size of the RangeBitmap on disk.
|
public RangeBitmap build(java.util.function.IntFunction<java.nio.ByteBuffer> supplier)
supplier - provides an appropriate ByteBuffer to store intopublic RangeBitmap build()
public RangeBitmap build(java.nio.ByteBuffer buffer)
buffer - a little endian buffer which must have sufficient capacity for the appended
values.public void clear()
public int serializedSizeInBytes()
public void serialize(java.nio.ByteBuffer buffer)
serializedSizeInBytes to size the
buffer appropriately.
It is not guaranteed that all values will be written
buffer - expected to be large enough to contain the bitmap.public void add(long value)
value - the value, will be rejected if greater than max value.