pub(crate) fn parse_page_index(
metadata: &ParquetMetaData,
column_index_policy: PageIndexPolicy,
offset_index_policy: PageIndexPolicy,
column_index_mask: &ColumnChunkMask,
offset_index_mask: &ColumnChunkMask,
bytes: &Bytes,
start_offset: u64,
) -> Result<Option<PageIndex>>Expand description
Parses page indexes from the provided bytes.
Arguments
metadata- The footer metadata describing the page index locations.column_index_policy- The policy for handling column index parsing (e.g., Required, Optional, Skip).offset_index_policy- The policy for handling offset index parsing (e.g., Required, Optional, Skip).column_index_mask- The row groups and leaf columns whose column indexes are parsed. Ignored whencolumn_index_policyisPageIndexPolicy::Skip.offset_index_mask- The row groups and leaf columns whose offset indexes are parsed. Ignored whenoffset_index_policyisPageIndexPolicy::Skip.bytes- The byte slice containing the page index data.start_offset- The offset wherebytesbegin in the file.