pub struct FileWriter<W: Write> { /* private fields */ }
Implementations
sourceimpl<W: Write> FileWriter<W>
impl<W: Write> FileWriter<W>
sourcepub fn try_new(writer: W, schema: &Schema) -> Result<Self>
pub fn try_new(writer: W, schema: &Schema) -> Result<Self>
Try create a new writer, with the schema written as part of the header
sourcepub fn try_new_with_options(
writer: W,
schema: &Schema,
write_options: IpcWriteOptions
) -> Result<Self>
pub fn try_new_with_options(
writer: W,
schema: &Schema,
write_options: IpcWriteOptions
) -> Result<Self>
Try create a new writer with IpcWriteOptions
sourcepub fn write(&mut self, batch: &RecordBatch) -> Result<()>
pub fn write(&mut self, batch: &RecordBatch) -> Result<()>
Write a record batch to the file
sourcepub fn finish(&mut self) -> Result<()>
pub fn finish(&mut self) -> Result<()>
Write footer and closing tag, then mark the writer as done
sourcepub fn into_inner(self) -> Result<W>
pub fn into_inner(self) -> Result<W>
Unwraps the BufWriter housed in FileWriter.writer, returning the underlying writer
The buffer is flushed and the FileWriter is finished before returning the writer.
Auto Trait Implementations
impl<W> !RefUnwindSafe for FileWriter<W>
impl<W> Send for FileWriter<W> where
W: Send,
impl<W> Sync for FileWriter<W> where
W: Sync,
impl<W> Unpin for FileWriter<W> where
W: Unpin,
impl<W> !UnwindSafe for FileWriter<W>
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