pub struct ParquetWriterBuilder { /* private fields */ }Expand description
ParquetWriterBuilder is used to builder a ParquetWriter
Implementations§
Source§impl ParquetWriterBuilder
impl ParquetWriterBuilder
Sourcepub fn new(props: WriterProperties, schema: SchemaRef) -> Self
pub fn new(props: WriterProperties, schema: SchemaRef) -> Self
Create a new ParquetWriterBuilder
To construct the write result, the schema should contain the PARQUET_FIELD_ID_META_KEY metadata for each field.
When writing into an existing Iceberg table, prefer
Self::from_table_properties, which derives WriterProperties from
the table’s write.parquet.* properties.
Sourcepub fn new_with_match_mode(
props: WriterProperties,
schema: SchemaRef,
match_mode: FieldMatchMode,
) -> Self
pub fn new_with_match_mode( props: WriterProperties, schema: SchemaRef, match_mode: FieldMatchMode, ) -> Self
Create a new ParquetWriterBuilder with custom match mode
Sourcepub fn from_table_properties(
table_props: &TableProperties,
schema: SchemaRef,
) -> Self
pub fn from_table_properties( table_props: &TableProperties, schema: SchemaRef, ) -> Self
Build a ParquetWriterBuilder from Iceberg table properties and a
schema, translating write.parquet.* settings into WriterProperties
instead of using parquet-rs defaults.
Currently translates the content-defined-chunking keys
(write.parquet.content-defined-chunking.*); other keys fall back to
parquet-rs defaults.
Sourcepub fn with_match_mode(self, match_mode: FieldMatchMode) -> Self
pub fn with_match_mode(self, match_mode: FieldMatchMode) -> Self
Set the field match mode used to map Arrow fields to Iceberg fields.
Defaults to FieldMatchMode::Id. Use FieldMatchMode::Name when the
incoming Arrow schema does not carry Iceberg field-id metadata.
Trait Implementations§
Source§impl Clone for ParquetWriterBuilder
impl Clone for ParquetWriterBuilder
Source§fn clone(&self) -> ParquetWriterBuilder
fn clone(&self) -> ParquetWriterBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParquetWriterBuilder
impl Debug for ParquetWriterBuilder
Source§impl FileWriterBuilder for ParquetWriterBuilder
impl FileWriterBuilder for ParquetWriterBuilder
Source§type R = ParquetWriter
type R = ParquetWriter
Auto Trait Implementations§
impl Freeze for ParquetWriterBuilder
impl RefUnwindSafe for ParquetWriterBuilder
impl Send for ParquetWriterBuilder
impl Sync for ParquetWriterBuilder
impl Unpin for ParquetWriterBuilder
impl UnsafeUnpin for ParquetWriterBuilder
impl UnwindSafe for ParquetWriterBuilder
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
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> ⓘ
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