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
final class DirectPacked64SingleBlockReader extends PackedInts.ReaderImpl
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitsPerValue
private IndexInput
in
private long
mask
private long
startPointer
private int
valuesPerBlock
-
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 DirectPacked64SingleBlockReader(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
private final IndexInput in
-
bitsPerValue
private final int bitsPerValue
-
startPointer
private final long startPointer
-
valuesPerBlock
private final int valuesPerBlock
-
mask
private final long mask
-
-
Constructor Detail
-
DirectPacked64SingleBlockReader
DirectPacked64SingleBlockReader(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.
-
-