Struct polars::prelude::IpcStreamWriter
source · [−]pub struct IpcStreamWriter<W> { /* private fields */ }
Expand description
Write a DataFrame to Arrow’s Streaming IPC format
Example
use polars_core::prelude::*;
use polars_io::ipc::IpcStreamWriter;
use std::fs::File;
use polars_io::SerWriter;
fn example(df: &mut DataFrame) -> Result<()> {
let mut file = File::create("file.ipc").expect("could not create file");
IpcStreamWriter::new(&mut file)
.finish(df)
}
Implementations
sourceimpl<W> IpcStreamWriter<W>
impl<W> IpcStreamWriter<W>
sourcepub fn with_compression(
self,
compression: Option<Compression>
) -> IpcStreamWriter<W>
pub fn with_compression(
self,
compression: Option<Compression>
) -> IpcStreamWriter<W>
Set the compression used. Defaults to None.
Trait Implementations
sourceimpl<W> SerWriter<W> for IpcStreamWriter<W> where
W: Write,
impl<W> SerWriter<W> for IpcStreamWriter<W> where
W: Write,
fn new(writer: W) -> IpcStreamWriter<W>
fn finish(&mut self, df: &mut DataFrame) -> Result<(), PolarsError>
Auto Trait Implementations
impl<W> RefUnwindSafe for IpcStreamWriter<W> where
W: RefUnwindSafe,
impl<W> Send for IpcStreamWriter<W> where
W: Send,
impl<W> Sync for IpcStreamWriter<W> where
W: Sync,
impl<W> Unpin for IpcStreamWriter<W> where
W: Unpin,
impl<W> UnwindSafe for IpcStreamWriter<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