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: PathBuf
Path
writer: FileWriter<File>
Inner writer
num_batches: usize
Batches written
num_rows: usize
Rows written
num_bytes: usize
Bytes 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