polars_parquet::arrow::write

Function array_to_page

Source
pub fn array_to_page(
    array: &dyn Array,
    type_: PrimitiveType,
    nested: &[Nested],
    options: WriteOptions,
    encoding: Encoding,
) -> PolarsResult<Page>
Expand description

Converts an Array to a CompressedPage based on options, descriptor and encoding.