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
|
boolean |
containsForContainerAtIndex(int i,
short x)
This checks whether the container at index i has the value x.
|
int |
first()
Gets the first value in the array
|
int |
getCardinality(int i)
Returns the cardinality of the container at the given index.
|
MappeableContainer |
getContainerAtIndex(int i) |
int |
getContainerIndex(short x)
Returns either the index of the container corresponding to key x, or a negative value.
|
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.
|
int |
last()
Gets the last value in the array
|
void |
serialize(DataOutput out)
Serialize.
|
int |
serializedSizeInBytes() |
int |
size() |
int advanceUntil(short x, int pos)
x
- minimal valuepos
- index to exceedPointableRoaringArray clone()
boolean containsForContainerAtIndex(int i, short x)
i
- container index (assumed to be non-negative)x
- 16-bit value to checkint getCardinality(int i)
i
- indexint getContainerIndex(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()
int first()
int last()
Copyright © 2018. All rights reserved.