public final class ImmutableRoaringArray extends Object implements PointableRoaringArray
Modifier and Type | Field and Description |
---|---|
protected static short |
SERIAL_COOKIE |
Modifier | Constructor and Description |
---|---|
protected |
ImmutableRoaringArray(ByteBuffer bbf)
Create an array based on a previously serialized ByteBuffer.
|
Modifier and Type | Method and Description |
---|---|
ImmutableRoaringArray |
clone() |
boolean |
equals(Object o) |
MappeableContainer |
getContainer(short x) |
MappeableContainer |
getContainerAtIndex(int i) |
org.roaringbitmap.buffer.MappeableContainerPointer |
getContainerPointer() |
int |
getIndex(short x) |
short |
getKeyAtIndex(int i) |
int |
hashCode() |
int |
serializedSizeInBytes() |
int |
size() |
protected static int |
unsignedBinarySearch(short[] array,
int begin,
int end,
short k) |
protected static final short SERIAL_COOKIE
protected ImmutableRoaringArray(ByteBuffer bbf)
bbf
- The source ByteBufferprotected static int unsignedBinarySearch(short[] array, int begin, int end, short k)
public ImmutableRoaringArray clone()
clone
in interface PointableRoaringArray
clone
in class Object
public MappeableContainer getContainer(short x)
getContainer
in interface PointableRoaringArray
x
- 16-bit keypublic MappeableContainer getContainerAtIndex(int i)
getContainerAtIndex
in interface PointableRoaringArray
i
- indexpublic org.roaringbitmap.buffer.MappeableContainerPointer getContainerPointer()
getContainerPointer
in interface PointableRoaringArray
public int getIndex(short x)
getIndex
in interface PointableRoaringArray
x
- 16-bit keypublic short getKeyAtIndex(int i)
getKeyAtIndex
in interface PointableRoaringArray
i
- the indexpublic int serializedSizeInBytes()
public int size()
size
in interface PointableRoaringArray
Copyright © 2014. All Rights Reserved.