Skip to main content

parse_page_index

Function parse_page_index 

Source
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 when column_index_policy is PageIndexPolicy::Skip.
  • offset_index_mask - The row groups and leaf columns whose offset indexes are parsed. Ignored when offset_index_policy is PageIndexPolicy::Skip.
  • bytes - The byte slice containing the page index data.
  • start_offset - The offset where bytes begin in the file.