|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.packed.PackedInts.NullReader
public static final class PackedInts.NullReader
A PackedInts.Reader
which has all its values equal to 0 (bitsPerValue = 0).
Constructor Summary | |
---|---|
PackedInts.NullReader(int valueCount)
Sole constructor. |
Method Summary | |
---|---|
long |
get(int index)
|
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. |
int |
getBitsPerValue()
|
boolean |
hasArray()
Returns true if this implementation is backed by a native java array. |
long |
ramBytesUsed()
Return the in-memory size in bytes. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackedInts.NullReader(int valueCount)
Method Detail |
---|
public long get(int index)
get
in interface PackedInts.Reader
index
- the position of the wanted value.
public int get(int index, long[] arr, int off, int len)
PackedInts.Reader
len
longs starting
from index
into arr[off:off+len]
and return
the actual number of values that have been read.
get
in interface PackedInts.Reader
public int getBitsPerValue()
getBitsPerValue
in interface PackedInts.Reader
bitsPerValue * #values
as implementations are free to
use non-space-optimal packing of bits.public int size()
size
in interface PackedInts.Reader
public long ramBytesUsed()
PackedInts.Reader
ramBytesUsed
in interface PackedInts.Reader
public Object getArray()
PackedInts.Reader
getArray
in interface PackedInts.Reader
public boolean hasArray()
PackedInts.Reader
hasArray
in interface PackedInts.Reader
PackedInts.Reader.getArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |