public interface PointableRoaringArray extends Cloneable
| Modifier and Type | Method and Description |
|---|---|
int |
advanceUntil(short x,
int pos)
Find the smallest integer index larger than pos such that getKeyAtIndex(index)>=x.
|
PointableRoaringArray |
clone()
Create an independent copy of the underlying array
|
int |
getCardinality(int i)
Returns the cardinality of the container at the given index.
|
MappeableContainer |
getContainer(short x) |
MappeableContainer |
getContainerAtIndex(int i) |
org.roaringbitmap.buffer.MappeableContainerPointer |
getContainerPointer() |
org.roaringbitmap.buffer.MappeableContainerPointer |
getContainerPointer(int startIndex) |
int |
getIndex(short x) |
short |
getKeyAtIndex(int i) |
boolean |
hasRunCompression()
Check whether this bitmap has had its runs compressed.
|
void |
serialize(DataOutput out)
Serialize.
|
int |
serializedSizeInBytes() |
int |
size() |
PointableRoaringArray clone()
MappeableContainer getContainer(short x)
x - 16-bit keyMappeableContainer getContainerAtIndex(int i)
i - indexorg.roaringbitmap.buffer.MappeableContainerPointer getContainerPointer()
org.roaringbitmap.buffer.MappeableContainerPointer getContainerPointer(int startIndex)
startIndex - starting indexint getIndex(short x)
x - 16-bit keyshort getKeyAtIndex(int i)
i - the indexint advanceUntil(short x,
int pos)
x - minimal valuepos - index to exceedint size()
void serialize(DataOutput out) throws IOException
out - the DataOutput streamIOException - Signals that an I/O exception has occurred.int serializedSizeInBytes()
int getCardinality(int i)
i - indexboolean hasRunCompression()
Copyright © 2015. All Rights Reserved.