Interface OffsetIndex
-
public interface OffsetIndexOffset index containing the offset and size of the page and the index of the first row in the page.- See Also:
OffsetIndex
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetCompressedPageSize(int pageIndex)longgetFirstRowIndex(int pageIndex)default longgetLastRowIndex(int pageIndex, long rowGroupRowCount)longgetOffset(int pageIndex)intgetPageCount()default intgetPageOrdinal(int pageIndex)
-
-
-
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 pagerowGroupRowCount- the total number of rows in the row-group- Returns:
- the calculated index of the last row of the given page
-
-