java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.PackedInts.ReaderImpl
- All Implemented Interfaces:
Accountable
- Direct Known Subclasses:
DirectPacked64SingleBlockReader,DirectPackedReader
- Enclosing class:
PackedInts
A simple base for Readers that keeps track of valueCount and bitsPerValue.
-
Field Summary
FieldsFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.util.packed.PackedInts.Reader
getMethods 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, ramBytesUsed
-
Field Details
-
valueCount
protected final int valueCount
-
-
Constructor Details
-
ReaderImpl
protected ReaderImpl(int valueCount)
-
-
Method Details
-
get
public abstract 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
-
size
public final int size()- Specified by:
sizein classPackedInts.Reader- Returns:
- the number of values.
-