Class BlockPackedReader

  • All Implemented Interfaces:
    Accountable

    public final class BlockPackedReader
    extends LongValues
    implements Accountable
    Provides random access to a stream written with BlockPackedWriter.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • BlockPackedReader

        public BlockPackedReader​(IndexInput in,
                                 int packedIntsVersion,
                                 int blockSize,
                                 long valueCount,
                                 boolean direct)
                          throws IOException
        Sole constructor.
        Throws:
        IOException
    • Method Detail

      • get

        public long get​(long index)
        Description copied from class: LongValues
        Get value at index.
        Specified by:
        get in class LongValues
      • 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