pub(crate) fn parse_page_index(
metadata: &mut ParquetMetaData,
column_index_policy: PageIndexPolicy,
offset_index_policy: PageIndexPolicy,
column_index_mask: &ColumnChunkMask,
offset_index_mask: &ColumnChunkMask,
bytes: &Bytes,
start_offset: u64,
) -> Result<()>Expand description
Parses page indexes from the provided bytes and replaces those in the metadata.
Arguments
metadata- The ParquetMetaData whose page index will be replaced.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.