|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface PackedInts.Reader
A read-only random access array of positive integers.
Method Summary | |
---|---|
long |
get(int index)
|
Object |
getArray()
Expert: if the bit-width of this reader matches one of java's native types, returns the underlying array (ie, byte[], short[], int[], long[]); else, returns null. |
int |
getBitsPerValue()
|
boolean |
hasArray()
Returns true if this implementation is backed by a native java array. |
int |
size()
|
Method Detail |
---|
long get(int index)
index
- the position of the wanted value.
int getBitsPerValue()
bitsPerValue * #values
as implementations are free to
use non-space-optimal packing of bits.int size()
Object getArray()
boolean hasArray()
getArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |