public final class BlockPackedReader extends LongValues implements Accountable
BlockPackedWriter
.Modifier and Type | Field and Description |
---|---|
private int |
blockMask |
private int |
blockShift |
private long[] |
minValues |
private PackedInts.Reader[] |
subReaders |
private long |
sumBPV |
private long |
valueCount |
IDENTITY, ZEROES
Constructor and Description |
---|
BlockPackedReader(IndexInput in,
int packedIntsVersion,
int blockSize,
long valueCount,
boolean direct)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
get(long index)
Get value at
index . |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
private final int blockShift
private final int blockMask
private final long valueCount
private final long[] minValues
private final PackedInts.Reader[] subReaders
private final long sumBPV
public BlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) throws java.io.IOException
java.io.IOException
public long get(long index)
LongValues
index
.get
in class LongValues
public long ramBytesUsed()
Accountable
ramBytesUsed
in interface Accountable
public java.lang.String toString()
toString
in class java.lang.Object