pub struct FileSinkConfig {
pub object_store_url: ObjectStoreUrl,
pub file_groups: Vec<PartitionedFile>,
pub table_paths: Vec<ListingTableUrl>,
pub output_schema: SchemaRef,
pub table_partition_cols: Vec<(String, DataType)>,
pub insert_op: InsertOp,
pub keep_partition_by_columns: bool,
pub file_extension: String,
}Expand description
The base configurations to provide when creating a physical plan for writing to any given file format.
Fields§
§object_store_url: ObjectStoreUrlObject store URL, used to get an ObjectStore instance
file_groups: Vec<PartitionedFile>A vector of PartitionedFile structs, each representing a file partition
table_paths: Vec<ListingTableUrl>Vector of partition paths
output_schema: SchemaRefThe schema of the output file
table_partition_cols: Vec<(String, DataType)>A vector of column names and their corresponding data types, representing the partitioning columns for the file
insert_op: InsertOpControls how new data should be written to the file, determining whether to append to, overwrite, or replace records in existing files.
keep_partition_by_columns: boolControls whether partition columns are kept for the file
file_extension: StringFile extension without a dot(.)
Implementations§
Source§impl FileSinkConfig
impl FileSinkConfig
Sourcepub fn output_schema(&self) -> &SchemaRef
pub fn output_schema(&self) -> &SchemaRef
Get output schema
Auto Trait Implementations§
impl Freeze for FileSinkConfig
impl !RefUnwindSafe for FileSinkConfig
impl Send for FileSinkConfig
impl Sync for FileSinkConfig
impl Unpin for FileSinkConfig
impl !UnwindSafe for FileSinkConfig
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