pub struct DataFrameWriter { /* private fields */ }Expand description
DataFrameWriter for writing DataFrames to various destinations.
Mirrors pyspark.sql.connect.readwriter.DataFrameWriter.
Implementations§
Source§impl DataFrameWriter
impl DataFrameWriter
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 by the given columns (liquid clustering).
Sourcepub fn partition_by<S: Into<String>>(
self,
cols: impl IntoIterator<Item = S>,
) -> Self
pub fn partition_by<S: Into<String>>( self, cols: impl IntoIterator<Item = S>, ) -> Self
Set the partition columns.
Sourcepub fn bucket_by<S: Into<String>>(
self,
num_buckets: i32,
cols: impl IntoIterator<Item = S>,
) -> Self
pub fn bucket_by<S: Into<String>>( self, num_buckets: i32, cols: impl IntoIterator<Item = S>, ) -> Self
Set the bucketing specification.
Sourcepub fn sort_by<S: Into<String>>(self, cols: impl IntoIterator<Item = S>) -> Self
pub fn sort_by<S: Into<String>>(self, cols: impl IntoIterator<Item = S>) -> Self
Set the sort columns.
Sourcepub fn save(self, path: Option<&str>) -> Result<()>
pub fn save(self, path: Option<&str>) -> Result<()>
Save the DataFrame to a file path (or to a path-less sink such as noop).
Sourcepub fn save_as_table(self, table_name: &str) -> Result<()>
pub fn save_as_table(self, table_name: &str) -> Result<()>
Save the DataFrame as a managed table.
Sourcepub fn insert_into(self, table_name: &str) -> Result<()>
pub fn insert_into(self, table_name: &str) -> Result<()>
Insert the DataFrame into an existing table.
Auto Trait Implementations§
impl !Freeze for DataFrameWriter
impl !RefUnwindSafe for DataFrameWriter
impl !UnwindSafe for DataFrameWriter
impl Send for DataFrameWriter
impl Sync for DataFrameWriter
impl Unpin for DataFrameWriter
impl UnsafeUnpin for DataFrameWriter
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