Package org.apache.lucene.util.packed
Class PackedInts.NullReader
java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.PackedInts.NullReader
- All Implemented Interfaces:
Accountable
- Enclosing class:
PackedInts
A
PackedInts.Reader which has all its values equal to 0 (bitsPerValue = 0).-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionstatic PackedInts.NullReaderforCount(int valueCount) longget(int index) Get the long at the given index.intget(int index, long[] arr, int off, int len) Bulk get: read at least one and at mostlenlongs starting fromindexintoarr[off:off+len]and return the actual number of values that have been read.longReturn the memory usage of this object in bytes.intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Method Details
-
forCount
-
get
public long get(int index) Description copied from class:PackedInts.ReaderGet the long at the given index. Behavior is undefined for out-of-range indices.- Specified by:
getin classPackedInts.Reader
-
get
public int get(int index, long[] arr, int off, int len) Description copied from class:PackedInts.ReaderBulk get: read at least one and at mostlenlongs starting fromindexintoarr[off:off+len]and return the actual number of values that have been read.- Overrides:
getin classPackedInts.Reader
-
size
public int size()- Specified by:
sizein classPackedInts.Reader- Returns:
- the number of values.
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-