Module org.apache.lucene.core
Package org.apache.lucene.util.packed
Class DirectPacked64SingleBlockReader
java.lang.Object
org.apache.lucene.util.packed.PackedInts.Reader
org.apache.lucene.util.packed.PackedInts.ReaderImpl
org.apache.lucene.util.packed.DirectPacked64SingleBlockReader
- All Implemented Interfaces:
Accountable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final IndexInputprivate final longprivate final longprivate final intFields inherited from class org.apache.lucene.util.packed.PackedInts.ReaderImpl
valueCountFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionDirectPacked64SingleBlockReader(int bitsPerValue, int valueCount, IndexInput in) -
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
private final int bitsPerValue -
startPointer
private final long startPointer -
valuesPerBlock
private final int valuesPerBlock -
mask
private final long mask
-
-
Constructor Details
-
DirectPacked64SingleBlockReader
DirectPacked64SingleBlockReader(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.
-