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 int
private final IndexInput
private final long
private final long
private final int
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
ConstructorsConstructorDescriptionDirectPacked64SingleBlockReader
(int bitsPerValue, int valueCount, IndexInput in) -
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
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.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.
-