Package org.apache.lucene.util.packed
Class MonotonicBlockPackedReader
- java.lang.Object
-
- org.apache.lucene.util.LongValues
-
- org.apache.lucene.util.packed.MonotonicBlockPackedReader
-
- All Implemented Interfaces:
Accountable
public class MonotonicBlockPackedReader extends LongValues implements Accountable
Provides random access to a stream written withMonotonicBlockPackedWriter.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.util.LongValues
IDENTITY, ZEROES
-
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longget(long index)Get value atindex.static MonotonicBlockPackedReaderof(IndexInput in, int packedIntsVersion, int blockSize, long valueCount)Sole constructor.longramBytesUsed()Return the memory usage of this object in bytes.longsize()Returns the number of valuesStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Method Detail
-
of
public static MonotonicBlockPackedReader of(IndexInput in, int packedIntsVersion, int blockSize, long valueCount) throws IOException
Sole constructor.- Throws:
IOException
-
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()
Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal.- Specified by:
ramBytesUsedin interfaceAccountable
-
-