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 with MonotonicBlockPackedWriter.
NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
  • Method Details

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

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

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Returns an estimate of the JVM heap memory used by this object in bytes. The method name uses "ram" for historical reasons; only JVM heap memory should be reported. Off-heap resources such as memory-mapped files or native direct buffers should not be included. Negative values are illegal.
      Specified by:
      ramBytesUsed in interface Accountable
    • toString

      public String toString()
      Overrides:
      toString in class Object