Package org.apache.lucene.util.packed
Class MonotonicBlockPackedReader
java.lang.Object
org.apache.lucene.index.NumericDocValues
org.apache.lucene.util.LongValues
org.apache.lucene.util.packed.MonotonicBlockPackedReader
Provides random access to a stream written with
MonotonicBlockPackedWriter
.-
Field Summary
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionMonotonicBlockPackedReader
(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) Sole constructor. -
Method Summary
Methods inherited from class org.apache.lucene.util.LongValues
get
-
Constructor Details
-
MonotonicBlockPackedReader
public MonotonicBlockPackedReader(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
-
size
public long size()Returns the number of values -
ramBytesUsed
public long ramBytesUsed()Returns the approximate RAM bytes used
-