pub struct DataFrameWriterV2 { /* private fields */ }Expand description
DataFrameWriterV2 for the v2 write API (DataFrame.writeTo).
Mirrors pyspark.sql.connect.readwriter.DataFrameWriterV2.
Implementations§
Source§impl DataFrameWriterV2
impl DataFrameWriterV2
Sourcepub fn cluster_by<S>(
self,
cols: impl IntoIterator<Item = S>,
) -> DataFrameWriterV2
pub fn cluster_by<S>( self, cols: impl IntoIterator<Item = S>, ) -> DataFrameWriterV2
Cluster the output table by the given columns (liquid clustering).
Sourcepub fn using(self, provider: &str) -> DataFrameWriterV2
pub fn using(self, provider: &str) -> DataFrameWriterV2
Specify the underlying output data source provider (e.g. “parquet”).
Sourcepub fn option(self, key: &str, value: &str) -> DataFrameWriterV2
pub fn option(self, key: &str, value: &str) -> DataFrameWriterV2
Add a write option.
Sourcepub fn options(self, options: HashMap<String, String>) -> DataFrameWriterV2
pub fn options(self, options: HashMap<String, String>) -> DataFrameWriterV2
Add multiple write options.
Sourcepub fn table_property(self, property: &str, value: &str) -> DataFrameWriterV2
pub fn table_property(self, property: &str, value: &str) -> DataFrameWriterV2
Add a table property.
Sourcepub fn partition_by<C>(
self,
columns: impl IntoIterator<Item = C>,
) -> DataFrameWriterV2
pub fn partition_by<C>( self, columns: impl IntoIterator<Item = C>, ) -> DataFrameWriterV2
Partition the output table by the given columns.
Sourcepub fn create(self) -> Result<(), SparkError>
pub fn create(self) -> Result<(), SparkError>
Create a new table from the DataFrame.
Sourcepub fn replace(self) -> Result<(), SparkError>
pub fn replace(self) -> Result<(), SparkError>
Replace an existing table with the DataFrame.
Sourcepub fn create_or_replace(self) -> Result<(), SparkError>
pub fn create_or_replace(self) -> Result<(), SparkError>
Create the table, or replace it if it already exists.
Sourcepub fn append(self) -> Result<(), SparkError>
pub fn append(self) -> Result<(), SparkError>
Append the DataFrame’s rows to the table.
Sourcepub fn overwrite(self, condition: Column) -> Result<(), SparkError>
pub fn overwrite(self, condition: Column) -> Result<(), SparkError>
Overwrite rows matching condition with the DataFrame’s rows.
Sourcepub fn overwrite_partitions(self) -> Result<(), SparkError>
pub fn overwrite_partitions(self) -> Result<(), SparkError>
Overwrite all partitions touched by the DataFrame (dynamic overwrite).
Trait Implementations§
Source§impl DataFrameWriterV2Ext for DataFrameWriterV2
impl DataFrameWriterV2Ext for DataFrameWriterV2
Source§fn append_async(self) -> impl Future<Output = Result<()>> + Send + 'static
fn append_async(self) -> impl Future<Output = Result<()>> + Send + 'static
Async
DataFrameWriterV2::append.Source§fn create_async(self) -> impl Future<Output = Result<()>> + Send + 'static
fn create_async(self) -> impl Future<Output = Result<()>> + Send + 'static
Async
DataFrameWriterV2::create.Source§fn overwrite_async(
self,
condition: Column,
) -> impl Future<Output = Result<()>> + Send + 'static
fn overwrite_async( self, condition: Column, ) -> impl Future<Output = Result<()>> + Send + 'static
Async
DataFrameWriterV2::overwrite.Source§fn replace_async(self) -> impl Future<Output = Result<()>> + Send + 'static
fn replace_async(self) -> impl Future<Output = Result<()>> + Send + 'static
Async
DataFrameWriterV2::replace.Auto Trait Implementations§
impl !Freeze for DataFrameWriterV2
impl !RefUnwindSafe for DataFrameWriterV2
impl !UnwindSafe for DataFrameWriterV2
impl Send for DataFrameWriterV2
impl Sync for DataFrameWriterV2
impl Unpin for DataFrameWriterV2
impl UnsafeUnpin for DataFrameWriterV2
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request