Class HsFileDataIndex.ReadableRegion

  • Enclosing interface:
    HsFileDataIndex

    public static class HsFileDataIndex.ReadableRegion
    extends Object
    Represents a series of physically continuous buffers in the file, which are readable, from the same subpartition, and has sequential buffer index.

    For efficiency, the index may not remember offsets of all buffers. Thus, a region is described as: starting from the offset, skip the first numSkip buffers and include the next numReadable buffers.

    • Field Detail

      • numSkip

        public final int numSkip
        From the offset, number of buffers to skip.
      • numReadable

        public final int numReadable
        From the offset, number of buffers to include after skipping the first numSkip ones.
      • offset

        public final long offset
        The file offset to begin with.
    • Constructor Detail

      • ReadableRegion

        public ReadableRegion​(int numSkip,
                              int numReadable,
                              long offset)