pub struct ArrowRowGroupWriterFactory {
schema: SchemaDescriptor,
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.
Fields§
§schema: SchemaDescriptor
§arrow_schema: SchemaRef
§props: WriterPropertiesPtr
§file_encryptor: Option<Arc<FileEncryptor>>
Implementations§
Source§impl ArrowRowGroupWriterFactory
impl ArrowRowGroupWriterFactory
fn new<W: Write + Send>( file_writer: &SerializedFileWriter<W>, schema: SchemaDescriptor, arrow_schema: SchemaRef, props: WriterPropertiesPtr, ) -> Self
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.
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