parquet::file::page_index::index_reader

Function read_pages_locations

Source
pub fn read_pages_locations<R: ChunkReader>(
    reader: &R,
    chunks: &[ColumnChunkMetaData],
) -> Result<Vec<Vec<PageLocation>>, ParquetError>
👎Deprecated since 53.0.0: Use read_offset_indexes
Expand description

Reads OffsetIndex, per-page PageLocation for all columns of a row group.

Returns a vector of location[column_number][page_number]

Return an empty vector if this row group does not contain an [OffsetIndex].

See Page Index Documentation for more details.