Package org.apache.lucene.util.packed
Class BlockPackedReader
- java.lang.Object
-
- org.apache.lucene.index.NumericDocValues
-
- org.apache.lucene.util.LongValues
-
- org.apache.lucene.util.packed.BlockPackedReader
-
public final class BlockPackedReader extends LongValues
Provides random access to a stream written withBlockPackedWriter
.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
-
-
Constructor Summary
Constructors Constructor Description BlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
get(long index)
Get value atindex
.long
ramBytesUsed()
Returns approximate RAM bytes used-
Methods inherited from class org.apache.lucene.util.LongValues
get
-
-
-
-
Constructor Detail
-
BlockPackedReader
public BlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) throws IOException
Sole constructor.- Throws:
IOException
-
-
Method Detail
-
get
public long get(long index)
Description copied from class:LongValues
Get value atindex
.- Specified by:
get
in classLongValues
-
ramBytesUsed
public long ramBytesUsed()
Returns approximate RAM bytes used
-
-