Struct datafusion_physical_plan::common::IPCWriter
source · pub struct IPCWriter {
pub path: PathBuf,
pub writer: FileWriter<File>,
pub num_batches: usize,
pub num_rows: usize,
pub num_bytes: usize,
}Expand description
Write in Arrow IPC format.
Fields§
§path: PathBufpath
writer: FileWriter<File>inner writer
num_batches: usizebatches written
num_rows: usizerows written
num_bytes: usizebytes written
Implementations§
source§impl IPCWriter
impl IPCWriter
sourcepub fn new_with_options(
path: &Path,
schema: &Schema,
write_options: IpcWriteOptions,
) -> Result<Self>
pub fn new_with_options( path: &Path, schema: &Schema, write_options: IpcWriteOptions, ) -> Result<Self>
Create new writer with IPC write options
sourcepub fn write(&mut self, batch: &RecordBatch) -> Result<()>
pub fn write(&mut self, batch: &RecordBatch) -> Result<()>
Write one single batch
Auto Trait Implementations§
impl Freeze for IPCWriter
impl RefUnwindSafe for IPCWriter
impl Send for IPCWriter
impl Sync for IPCWriter
impl Unpin for IPCWriter
impl UnwindSafe for IPCWriter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more