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
Provides random access to a stream written with
BlockPackedWriter
.-
Field Summary
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionBlockPackedReader
(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionlong
get
(long index) Get value atindex
.long
Returns approximate RAM bytes usedMethods inherited from class org.apache.lucene.util.LongValues
get
-
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:LongValues
Get value atindex
.- Specified by:
get
in classLongValues
-
ramBytesUsed
public long ramBytesUsed()Returns approximate RAM bytes used
-