Struct polars::prelude::ParquetWriter
source · [−]pub struct ParquetWriter<W> { /* private fields */ }
Expand description
Write a DataFrame to parquet format
Implementations
sourceimpl<W> ParquetWriter<W> where
W: Write,
impl<W> ParquetWriter<W> where
W: Write,
sourcepub fn new(writer: W) -> ParquetWriter<W> where
W: Write,
pub fn new(writer: W) -> ParquetWriter<W> where
W: Write,
Create a new writer
sourcepub fn with_compression(
self,
compression: CompressionOptions
) -> ParquetWriter<W>
pub fn with_compression(
self,
compression: CompressionOptions
) -> ParquetWriter<W>
Set the compression used. Defaults to Lz4Raw
.
The default compression Lz4Raw
has very good performance, but may not yet been supported
by older readers. If you want more compatability guarantees, consider using Snappy
.
sourcepub fn with_statistics(self, statistics: bool) -> ParquetWriter<W>
pub fn with_statistics(self, statistics: bool) -> ParquetWriter<W>
Compute and write statistic
sourcepub fn with_row_group_size(self, size: Option<usize>) -> ParquetWriter<W>
pub fn with_row_group_size(self, size: Option<usize>) -> ParquetWriter<W>
Set the row group size during writing. This can reduce memory pressure and improve writing performance.
Auto Trait Implementations
impl<W> RefUnwindSafe for ParquetWriter<W> where
W: RefUnwindSafe,
impl<W> Send for ParquetWriter<W> where
W: Send,
impl<W> Sync for ParquetWriter<W> where
W: Sync,
impl<W> Unpin for ParquetWriter<W> where
W: Unpin,
impl<W> UnwindSafe for ParquetWriter<W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more