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
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final IndexInput
(package private) final long
(package private) final long
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 -
Method Summary
Modifier and TypeMethodDescriptionlong
get
(int index) Get the long at the given index.long
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 Details
-
in
-
bitsPerValue
final int bitsPerValue -
startPointer
final long startPointer -
valueMask
final long valueMask
-
-
Constructor Details
-
DirectPackedReader
DirectPackedReader(int bitsPerValue, int valueCount, IndexInput in)
-
-
Method Details
-
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.
-