public final class RoaringArray extends Object implements Cloneable, Externalizable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RoaringArray.Element |
| Modifier and Type | Field and Description |
|---|---|
protected static short |
SERIAL_COOKIE |
| Modifier | Constructor and Description |
|---|---|
protected |
RoaringArray() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(short key,
Container value) |
protected void |
appendCopiesAfter(RoaringArray sa,
short beforeStart)
Append copies of the values AFTER a specified key (may or may not be
present) to end.
|
protected void |
appendCopiesUntil(RoaringArray sourceArray,
short stoppingKey)
Append copies of the values from another array, from the start
|
protected void |
appendCopy(RoaringArray sa,
int index)
Append copy of the one value from another array
|
protected void |
appendCopy(RoaringArray sa,
int startingIndex,
int end)
Append copies of the values from another array
|
protected void |
clear() |
RoaringArray |
clone() |
void |
deserialize(DataInput in)
Deserialize.
|
boolean |
equals(Object o) |
protected void |
extendArray(int k) |
protected Container |
getContainer(short x) |
protected Container |
getContainerAtIndex(int i) |
protected org.roaringbitmap.ContainerPointer |
getContainerPointer() |
protected int |
getIndex(short x) |
protected short |
getKeyAtIndex(int i) |
int |
hashCode() |
protected void |
insertNewKeyValueAt(int i,
short key,
Container value) |
void |
readExternal(ObjectInput in) |
protected void |
removeAtIndex(int i) |
protected void |
resize(int newLength) |
void |
serialize(DataOutput out)
Serialize.
|
int |
serializedSizeInBytes()
Report the number of bytes required for serialization.
|
protected void |
setContainerAtIndex(int i,
Container c) |
protected int |
size() |
void |
writeExternal(ObjectOutput out) |
protected static final short SERIAL_COOKIE
protected void append(short key,
Container value)
protected void appendCopy(RoaringArray sa, int index)
sa - other arrayindex - index in the other arrayprotected void appendCopy(RoaringArray sa, int startingIndex, int end)
sa - other arraystartingIndex - starting index in the other arrayend - endingIndex (exclusive) in the other arrayprotected void appendCopiesUntil(RoaringArray sourceArray, short stoppingKey)
sourceArray - The array to copy fromstoppingKey - any equal or larger key in other array will terminate
copyingprotected void appendCopiesAfter(RoaringArray sa, short beforeStart)
sa - other arraybeforeStart - given key is the largest key that we won't copyprotected void clear()
public RoaringArray clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionprotected void extendArray(int k)
protected Container getContainer(short x)
protected Container getContainerAtIndex(int i)
protected int getIndex(short x)
protected short getKeyAtIndex(int i)
protected void insertNewKeyValueAt(int i,
short key,
Container value)
protected void resize(int newLength)
protected void removeAtIndex(int i)
protected void setContainerAtIndex(int i,
Container c)
protected int size()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void serialize(DataOutput out) throws IOException
out - the DataOutput streamIOException - Signals that an I/O exception has occurred.public int serializedSizeInBytes()
public void deserialize(DataInput in) throws IOException
in - the DataInput streamIOException - Signals that an I/O exception has occurred.protected org.roaringbitmap.ContainerPointer getContainerPointer()
Copyright © 2014. All Rights Reserved.