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 with MonotonicBlockPackedWriter.
  • 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 at index.
      Specified by:
      get in class LongValues
    • size

      public long size()
      Returns the number of values
    • ramBytesUsed

      public long ramBytesUsed()
      Returns the approximate RAM bytes used