pub struct FileWriter<W> where
W: Write, { /* private fields */ }
This is supported on crate feature
io_ipc
only.Expand description
Arrow file writer
Implementations
sourceimpl<W> FileWriter<W> where
W: Write,
impl<W> FileWriter<W> where
W: Write,
sourcepub fn try_new(
writer: W,
schema: &Schema,
ipc_fields: Option<Vec<IpcField, Global>>,
options: WriteOptions
) -> Result<FileWriter<W>, ArrowError>
pub fn try_new(
writer: W,
schema: &Schema,
ipc_fields: Option<Vec<IpcField, Global>>,
options: WriteOptions
) -> Result<FileWriter<W>, ArrowError>
Try create a new writer, with the schema written as part of the header
sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consumes itself into the inner writer
sourcepub fn write(
&mut self,
columns: &Chunk<Arc<dyn Array + 'static>>,
ipc_fields: Option<&[IpcField]>
) -> Result<(), ArrowError>
pub fn write(
&mut self,
columns: &Chunk<Arc<dyn Array + 'static>>,
ipc_fields: Option<&[IpcField]>
) -> Result<(), ArrowError>
Writes Chunk
to the file
sourcepub fn finish(&mut self) -> Result<(), ArrowError>
pub fn finish(&mut self) -> Result<(), ArrowError>
Write footer and closing tag, then mark the writer as done
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