Trait polars::prelude::SerReader

source ·
pub trait SerReader<R>
where R: Read,
{ // Required methods fn new(reader: R) -> Self; fn finish(self) -> Result<DataFrame, PolarsError>; // Provided method fn set_rechunk(self, _rechunk: bool) -> Self where Self: Sized { ... } }
Available on crate feature polars-io only.

Required Methods§

source

fn new(reader: R) -> Self

Create a new instance of the [SerReader]

source

fn finish(self) -> Result<DataFrame, PolarsError>

Take the SerReader and return a parsed DataFrame.

Provided Methods§

source

fn set_rechunk(self, _rechunk: bool) -> Self
where Self: Sized,

Make sure that all columns are contiguous in memory by aggregating the chunks into a single array.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, R> SerReader<R> for JsonLineReader<'a, R>
where R: MmapBytesReader,

source§

impl<'a, R> SerReader<R> for JsonReader<'a, R>
where R: MmapBytesReader,

source§

impl<R> SerReader<R> for CsvReader<R>
where R: MmapBytesReader,

source§

impl<R> SerReader<R> for IpcReader<R>
where R: MmapBytesReader,

source§

impl<R> SerReader<R> for IpcStreamReader<R>
where R: Read,

source§

impl<R> SerReader<R> for ParquetReader<R>
where R: MmapBytesReader,