pub struct IpcStreamReader<R> { /* private fields */ }
Expand description

Read Arrows Stream IPC format into a DataFrame

Example

use polars_core::prelude::*;
use std::fs::File;
use polars_io::ipc::IpcStreamReader;
use polars_io::SerReader;

fn example() -> Result<DataFrame> {
    let file = File::open("file.ipc").expect("file not found");

    IpcStreamReader::new(file)
        .finish()
}

Implementations

Get schema of the Ipc Stream File

Get arrow schema of the Ipc Stream File, this is faster than creating a polars schema.

Stop reading when n rows are read.

Columns to select/ project

Add a row_count column.

Set the reader’s column projection. This counts from 0, meaning that vec![0, 4] would select the 1st and 5th column.

Trait Implementations

Rechunk to a single chunk after Reading file.

Take the SerReader and return a parsed DataFrame.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.