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) int
bitsPerValue
(package private) IndexInput
in
(package private) long
startPointer
(package private) long
valueMask
-
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 long
get(int index)
Get the long at the given index.long
ramBytesUsed()
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.Reader
Get the long at the given index. Behavior is undefined for out-of-range indices.- Specified by:
get
in classPackedInts.ReaderImpl
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
-