pub struct FileSinkConfig {
pub original_url: String,
pub object_store_url: ObjectStoreUrl,
pub file_group: FileGroup,
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§
§original_url: String
The unresolved URL specified by the user
object_store_url: ObjectStoreUrl
Object store URL, used to get an ObjectStore instance
file_group: FileGroup
A collection of files organized into groups. Each FileGroup contains one or more PartitionedFile objects.
table_paths: Vec<ListingTableUrl>
Vector of partition paths
output_schema: SchemaRef
The 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: InsertOp
Controls 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: bool
Controls whether partition columns are kept for the file
file_extension: String
File 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
Trait Implementations§
Source§impl Clone for FileSinkConfig
impl Clone for FileSinkConfig
Source§fn clone(&self) -> FileSinkConfig
fn clone(&self) -> FileSinkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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