pub struct WriterConfig { /* private fields */ }
Expand description
Configuration to write data into Delta tables
Implementations§
Source§impl WriterConfig
impl WriterConfig
Sourcepub fn new(
table_schema: ArrowSchemaRef,
partition_columns: Vec<String>,
writer_properties: Option<WriterProperties>,
target_file_size: Option<usize>,
write_batch_size: Option<usize>,
num_indexed_cols: i32,
stats_columns: Option<Vec<String>>,
) -> Self
pub fn new( table_schema: ArrowSchemaRef, partition_columns: Vec<String>, writer_properties: Option<WriterProperties>, target_file_size: Option<usize>, write_batch_size: Option<usize>, num_indexed_cols: i32, stats_columns: Option<Vec<String>>, ) -> Self
Create a new instance of WriterConfig.
Sourcepub fn file_schema(&self) -> ArrowSchemaRef
pub fn file_schema(&self) -> ArrowSchemaRef
Schema of files written to disk
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriterConfig
impl RefUnwindSafe for WriterConfig
impl Send for WriterConfig
impl Sync for WriterConfig
impl Unpin for WriterConfig
impl UnwindSafe for WriterConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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