pub struct FileWriter<W> where
W: Write, { /* private fields */ }
This is supported on crate feature
io_parquet
only.Expand description
An interface to write a parquet to a Write
Implementations
sourceimpl<W> FileWriter<W> where
W: Write,
impl<W> FileWriter<W> where
W: Write,
sourcepub fn options(&self) -> &WriteOptions
pub fn options(&self) -> &WriteOptions
The options assigned to the file
sourcepub fn parquet_schema(&self) -> &SchemaDescriptor
pub fn parquet_schema(&self) -> &SchemaDescriptor
The SchemaDescriptor
assigned to this file
sourceimpl<W> FileWriter<W> where
W: Write,
impl<W> FileWriter<W> where
W: Write,
sourcepub fn try_new(
writer: W,
schema: Schema,
options: WriteOptions
) -> Result<FileWriter<W>, ArrowError>
pub fn try_new(
writer: W,
schema: Schema,
options: WriteOptions
) -> Result<FileWriter<W>, ArrowError>
sourcepub fn start(&mut self) -> Result<(), ArrowError>
pub fn start(&mut self) -> Result<(), ArrowError>
Writes the header of the file
sourcepub fn write(
&mut self,
row_group: DynIter<'_, Result<DynStreamingIterator<'_, CompressedPage, ArrowError>, ArrowError>>,
num_rows: usize
) -> Result<(), ArrowError>
pub fn write(
&mut self,
row_group: DynIter<'_, Result<DynStreamingIterator<'_, CompressedPage, ArrowError>, ArrowError>>,
num_rows: usize
) -> Result<(), ArrowError>
Writes a row group to the file.
Auto Trait Implementations
impl<W> RefUnwindSafe for FileWriter<W> where
W: RefUnwindSafe,
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> 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