parquet_get_physical_row_indices Interface

interface
public module subroutine parquet_get_physical_row_indices(reader, rows)

Arguments

Type IntentOptional Attributes Name
type(parquet_reader), intent(in) :: reader

open reader.

integer(kind=int64), intent(out), allocatable :: rows(:)

one physical row index per returned row.

Description

The 1-based PHYSICAL file row index of each row this reader currently returns, in the order it returns them.

Without a filter=/sample_fraction=/sort_by= this is simply 1, 2, 3, ..., and with one it is the only way to find out which file rows survived and in what order -- that lives in the reader's own mask and permutation and is not otherwise visible. rows comes back with one entry per row the reader reports (parquet_get_nrows).

This is what parquet_table's automatic parquet_row_index column is built on.