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: Into<String>>(
self,
cols: impl IntoIterator<Item = S>,
) -> Self
pub fn cluster_by<S: Into<String>>( self, cols: impl IntoIterator<Item = S>, ) -> Self
Cluster the output table by the given columns (liquid clustering).
Sourcepub fn using(self, provider: &str) -> Self
pub fn using(self, provider: &str) -> Self
Specify the underlying output data source provider (e.g. “parquet”).
Sourcepub fn table_property(self, property: &str, value: &str) -> Self
pub fn table_property(self, property: &str, value: &str) -> Self
Add a table property.
Sourcepub fn partition_by<C: Into<Column>>(
self,
columns: impl IntoIterator<Item = C>,
) -> Self
pub fn partition_by<C: Into<Column>>( self, columns: impl IntoIterator<Item = C>, ) -> Self
Partition the output table by the given columns.
Sourcepub fn create_or_replace(self) -> Result<()>
pub fn create_or_replace(self) -> Result<()>
Create the table, or replace it if it already exists.
Sourcepub fn overwrite(self, condition: Column) -> Result<()>
pub fn overwrite(self, condition: Column) -> Result<()>
Overwrite rows matching condition with the DataFrame’s rows.
Sourcepub fn overwrite_partitions(self) -> Result<()>
pub fn overwrite_partitions(self) -> Result<()>
Overwrite all partitions touched by the DataFrame (dynamic overwrite).
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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