Module polars_io::parquet[][src]

This is supported on crate feature feature only.

Reading Apache parquet files.

Example

use polars_core::prelude::*;
use polars_io::prelude::*;
use std::fs::File;

fn example() -> Result<DataFrame> {
    let r = File::open("some_file.parquet").unwrap();
    let reader = ParquetReader::new(r);
    reader.finish()
}

Structs

ParquetReader

Read Apache parquet format into a DataFrame.

ParquetWriter

Write a DataFrame to parquet format

SliceableCursor

This is object to use if your file is already in memory. The sliceable cursor is similar to std::io::Cursor, except that it makes it easy to create “cursor slices”. To achieve this, it uses Arc instead of shared references. Indeed reference fields are painful because the lack of Generic Associated Type implies that you would require complex lifetime propagation when returning such a cursor.