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
-
public final class MonotonicBlockPackedReader extends LongValues
Provides random access to a stream written withMonotonicBlockPackedWriter.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
-
-
Constructor Summary
Constructors Constructor Description MonotonicBlockPackedReader(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 longget(long index)Get value atindex.longramBytesUsed()Returns the approximate RAM bytes usedlongsize()Returns the number of values-
Methods inherited from class org.apache.lucene.util.LongValues
get
-
-
-
-
Constructor Detail
-
MonotonicBlockPackedReader
public MonotonicBlockPackedReader(IndexInput in, int packedIntsVersion, int blockSize, long valueCount, boolean direct) throws java.io.IOException
Sole constructor.- Throws:
java.io.IOException
-
-
Method Detail
-
get
public long get(long index)
Description copied from class:LongValuesGet value atindex.- Specified by:
getin classLongValues
-
size
public long size()
Returns the number of values
-
ramBytesUsed
public long ramBytesUsed()
Returns the approximate RAM bytes used
-
-