|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.Readerindex - the position of the wanted value.
public int get(int index,
long[] arr,
int off,
int len)
PackedInts.Readerlen longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read.
get in interface PackedInts.Readerpublic int getBitsPerValue()
getBitsPerValue in interface PackedInts.ReaderbitsPerValue * #values as implementations are free to
use non-space-optimal packing of bits.public int size()
size in interface PackedInts.Readerpublic long ramBytesUsed()
PackedInts.Reader
ramBytesUsed in interface PackedInts.Readerpublic Object getArray()
PackedInts.Reader
getArray in interface PackedInts.Readerpublic boolean hasArray()
PackedInts.Reader
hasArray in interface PackedInts.ReaderPackedInts.Reader.getArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||