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) |
MappeableContainerPointer |
getContainerPointer() |
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() |
int advanceUntil(short x, int pos)
x
- minimal valuepos
- index to exceedPointableRoaringArray clone()
int getCardinality(int i)
i
- indexMappeableContainer getContainer(short x)
x
- 16-bit keyMappeableContainer getContainerAtIndex(int i)
i
- indexMappeableContainerPointer getContainerPointer()
MappeableContainerPointer getContainerPointer(int startIndex)
startIndex
- starting indexint getIndex(short x)
x
- 16-bit keyshort getKeyAtIndex(int i)
i
- the indexboolean hasRunCompression()
void serialize(DataOutput out) throws IOException
out
- the DataOutput streamIOException
- Signals that an I/O exception has occurred.int serializedSizeInBytes()
int size()
Copyright © 2016. All Rights Reserved.