pub struct ArrowRowGroupWriterFactory {
schema: SchemaDescPtr,
arrow_schema: SchemaRef,
props: WriterPropertiesPtr,
file_encryptor: Option<Arc<FileEncryptor>>,
}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
Fields§
§schema: SchemaDescPtr§arrow_schema: SchemaRef§props: WriterPropertiesPtr§file_encryptor: Option<Arc<FileEncryptor>>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
fn create_row_group_writer( &self, row_group_index: usize, ) -> Result<ArrowRowGroupWriter>
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
fn column_writer_factory( &self, row_group_idx: usize, ) -> ArrowColumnWriterFactory
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
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