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 longFields inherited from class org.apache.lucene.util.packed.PackedInts.ReaderImpl
valueCountFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongget(int index) Get the long at the given index.longReturn the memory usage of this object in bytes.Methods inherited from class org.apache.lucene.util.packed.PackedInts.ReaderImpl
sizeMethods inherited from class org.apache.lucene.util.packed.PackedInts.Reader
getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.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.
-