Package org.apache.lucene.util.packed
Class DirectPackedReader
- java.lang.Object
-
- org.apache.lucene.util.packed.PackedInts.Reader
-
- org.apache.lucene.util.packed.PackedInts.ReaderImpl
-
- org.apache.lucene.util.packed.DirectPackedReader
-
- All Implemented Interfaces:
Accountable
class DirectPackedReader extends PackedInts.ReaderImpl
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intbitsPerValue(package private) IndexInputin(package private) longstartPointer(package private) longvalueMask-
Fields inherited from class org.apache.lucene.util.packed.PackedInts.ReaderImpl
valueCount
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Constructor Summary
Constructors Constructor Description DirectPackedReader(int bitsPerValue, int valueCount, IndexInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(int index)Get the long at the given index.longramBytesUsed()Return the memory usage of this object in bytes.-
Methods inherited from class org.apache.lucene.util.packed.PackedInts.ReaderImpl
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
-
-
-
-
Field Detail
-
in
final IndexInput in
-
bitsPerValue
final int bitsPerValue
-
startPointer
final long startPointer
-
valueMask
final long valueMask
-
-
Constructor Detail
-
DirectPackedReader
DirectPackedReader(int bitsPerValue, int valueCount, IndexInput in)
-
-
Method Detail
-
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.ReaderImpl
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.
-
-