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 Summary
Modifier and TypeMethodDescriptionintgetCompressedPageSize(int pageIndex) longgetFirstRowIndex(int pageIndex) default longgetLastRowIndex(int pageIndex, long rowGroupRowCount) longgetOffset(int pageIndex) intdefault intgetPageOrdinal(int pageIndex) getUnencodedByteArrayDataBytes(int pageIndex)
-
Method Details
-
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
-
getUnencodedByteArrayDataBytes
- Parameters:
pageIndex- the index of the page- Returns:
- unencoded/uncompressed size for BYTE_ARRAY types; or empty for other types. Please note that even for BYTE_ARRAY types, this value might not have been written.
-