Package org.apache.lucene.util.packed
Class BlockPackedReader
java.lang.Object
org.apache.lucene.util.LongValues
org.apache.lucene.util.packed.BlockPackedReader
- All Implemented Interfaces:
Accountable
Provides random access to a stream written with
BlockPackedWriter.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final long[]private final PackedInts.Reader[]private final longprivate final longFields inherited from class org.apache.lucene.util.LongValues
IDENTITY, ZEROESFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsConstructorDescriptionBlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) Sole constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
blockShift
private final int blockShift -
blockMask
private final int blockMask -
valueCount
private final long valueCount -
minValues
private final long[] minValues -
subReaders
-
sumBPV
private final long sumBPV
-
-
Constructor Details
-
BlockPackedReader
public BlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) throws IOException Sole constructor.- Throws:
IOException
-
-
Method Details
-
get
public long get(long index) Description copied from class:LongValuesGet value atindex.- Specified by:
getin classLongValues
-
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
toString
-