Interface OffsetIndex


  • public interface OffsetIndex
    Offset index containing the offset and size of the page and the index of the first row in the page.
    See Also:
    OffsetIndex
    • Method Detail

      • getPageCount

        int getPageCount()
        Returns:
        the number of pages
      • getOffset

        long getOffset​(int pageIndex)
        Parameters:
        pageIndex - the index of the page
        Returns:
        the offset of the page in the file
      • getCompressedPageSize

        int getCompressedPageSize​(int pageIndex)
        Parameters:
        pageIndex - the index of the page
        Returns:
        the compressed size of the page (including page header)
      • getFirstRowIndex

        long getFirstRowIndex​(int pageIndex)
        Parameters:
        pageIndex - the index of the page
        Returns:
        the index of the first row in the page
      • getPageOrdinal

        default int getPageOrdinal​(int pageIndex)
        Parameters:
        pageIndex - the index of the page
        Returns:
        the original ordinal of the page in the column chunk
      • getLastRowIndex

        default long getLastRowIndex​(int pageIndex,
                                     long rowGroupRowCount)
        Parameters:
        pageIndex - the index of the page
        rowGroupRowCount - the total number of rows in the row-group
        Returns:
        the calculated index of the last row of the given page