polars_parquet::arrow::write

Function transverse

Source
pub fn transverse<T, F: Fn(&ArrowDataType) -> T + Clone>(
    dtype: &ArrowDataType,
    map: F,
) -> Vec<T>
Expand description

Transverses the dtype up to its (parquet) columns and returns a vector of items based on map.

This is used to assign an Encoding to every parquet column based on the columns’ type (see example)