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 int
valueCount
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReaderImpl(int valueCount)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
get(int index)
Get the long at the given index.int
size()
-
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.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.
-
-