Class 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 Detail

      • 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
        Return the memory usage of this object in bytes. Negative values are illegal.
        Specified by:
        ramBytesUsed in interface Accountable