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
abstract static class PackedInts.ReaderImpl extends PackedInts.Reader
A simple base for Readers that keeps track of valueCount and bitsPerValue.
-
-
Field Summary
Fields Modifier and Type Field Description protected intvalueCount-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReaderImpl(int valueCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longget(int index)Get the long at the given index.intsize()-
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
-
-
-
-
Method Detail
-
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.
-
-