pub struct FileSinkConfig {
pub object_store_url: String,
pub file_groups: Vec<PartitionedFile>,
pub table_paths: Vec<String>,
pub output_schema: Option<Schema>,
pub table_partition_cols: Vec<PartitionColumn>,
pub keep_partition_by_columns: bool,
pub insert_op: i32,
pub file_extension: String,
pub file_output_mode: i32,
}Fields§
§object_store_url: String§file_groups: Vec<PartitionedFile>§table_paths: Vec<String>§output_schema: Option<Schema>§table_partition_cols: Vec<PartitionColumn>§keep_partition_by_columns: bool§insert_op: i32§file_extension: String§file_output_mode: i32Determines how the output path is interpreted.
Implementations§
Source§impl FileSinkConfig
impl FileSinkConfig
Sourcepub fn insert_op(&self) -> InsertOp
pub fn insert_op(&self) -> InsertOp
Returns the enum value of insert_op, or the default if the field is set to an invalid enum value.
Sourcepub fn set_insert_op(&mut self, value: InsertOp)
pub fn set_insert_op(&mut self, value: InsertOp)
Sets insert_op to the provided enum value.
Sourcepub fn file_output_mode(&self) -> FileOutputMode
pub fn file_output_mode(&self) -> FileOutputMode
Returns the enum value of file_output_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_file_output_mode(&mut self, value: FileOutputMode)
pub fn set_file_output_mode(&mut self, value: FileOutputMode)
Sets file_output_mode to the provided enum value.
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 moreSource§impl Debug for FileSinkConfig
impl Debug for FileSinkConfig
Source§impl Default for FileSinkConfig
impl Default for FileSinkConfig
§impl<'de> Deserialize<'de> for FileSinkConfig
impl<'de> Deserialize<'de> for FileSinkConfig
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for FileSinkConfig
impl Message for FileSinkConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for FileSinkConfig
impl PartialEq for FileSinkConfig
§impl Serialize for FileSinkConfig
impl Serialize for FileSinkConfig
Source§impl TryFrom<&FileSinkConfig> for FileSinkConfig
impl TryFrom<&FileSinkConfig> for FileSinkConfig
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&FileSinkConfig> for FileSinkConfig
impl TryFrom<&FileSinkConfig> for FileSinkConfig
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
impl StructuralPartialEq for FileSinkConfig
Auto Trait Implementations§
impl Freeze for FileSinkConfig
impl RefUnwindSafe for FileSinkConfig
impl Send for FileSinkConfig
impl Sync for FileSinkConfig
impl Unpin for FileSinkConfig
impl UnsafeUnpin 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