public abstract static class PackedInts.Reader extends NumericDocValues
EMPTY
Constructor and Description |
---|
PackedInts.Reader() |
Modifier and Type | Method and Description |
---|---|
int |
get(int index,
long[] arr,
int off,
int len)
Bulk get: read at least one and at most
len longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read. |
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.
|
abstract int |
getBitsPerValue() |
boolean |
hasArray()
Returns true if this implementation is backed by a
native java array.
|
abstract long |
ramBytesUsed()
Return the in-memory size in bytes.
|
abstract int |
size() |
get
public int get(int index, long[] arr, int off, int len)
len
longs starting
from index
into arr[off:off+len]
and return
the actual number of values that have been read.public abstract int getBitsPerValue()
bitsPerValue * #values
as implementations are free to
use non-space-optimal packing of bits.public abstract int size()
public abstract long ramBytesUsed()
public Object getArray()
public boolean hasArray()
getArray()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.