pub struct ArrowRowGroupWriterFactory { /* private fields */ }Expand description
Factory that creates new column writers for each row group in the Parquet file.
You can create this structure via an ArrowWriter::into_serialized_writer.
See the example on ArrowColumnWriter for how to encode columns in parallel
Implementations§
Source§impl ArrowRowGroupWriterFactory
impl ArrowRowGroupWriterFactory
Sourcepub fn new<W: Write + Send>(
file_writer: &SerializedFileWriter<W>,
arrow_schema: SchemaRef,
) -> Self
pub fn new<W: Write + Send>( file_writer: &SerializedFileWriter<W>, arrow_schema: SchemaRef, ) -> Self
Create a new ArrowRowGroupWriterFactory for the provided file writer and Arrow schema
Sourcepub fn create_column_writers(
&self,
row_group_index: usize,
) -> Result<Vec<ArrowColumnWriter>>
pub fn create_column_writers( &self, row_group_index: usize, ) -> Result<Vec<ArrowColumnWriter>>
Create column writers for a new row group, with the given row group index
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArrowRowGroupWriterFactory
impl RefUnwindSafe for ArrowRowGroupWriterFactory
impl Send for ArrowRowGroupWriterFactory
impl Sync for ArrowRowGroupWriterFactory
impl Unpin for ArrowRowGroupWriterFactory
impl UnwindSafe for ArrowRowGroupWriterFactory
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