Package org.apache.lucene.util.packed
Class PackedInts.ReaderImpl
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
get
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.Reader
Get the long at the given index. Behavior is undefined for out-of-range indices.- Specified by:
get
in classPackedInts.Reader
-
size
public final int size()- Specified by:
size
in classPackedInts.Reader
- Returns:
- the number of values.
-