pub struct CoGroupedData { /* private fields */ }Expand description
A pair of cogrouped GroupedData, mirroring pyspark.sql.PandasCogroupedOps.
Created via GroupedData::cogroup.
Implementations§
Source§impl CoGroupedData
impl CoGroupedData
Sourcepub fn input_columns(&self) -> Result<Vec<String>>
pub fn input_columns(&self) -> Result<Vec<String>>
Column names of both sides (left then right), passed as the cogroup UDF’s argument columns so the worker’s two pandas/Arrow inputs are named.
Sourcepub fn apply_in_pandas(
&self,
func: CommonInlineUserDefinedFunctionExpression,
) -> DataFrame
pub fn apply_in_pandas( &self, func: CommonInlineUserDefinedFunctionExpression, ) -> DataFrame
Apply a pandas UDF to each cogroup (cogroup(...).applyInPandas).
func is built on the Python side (cloudpickled, eval type
SQL_COGROUPED_MAP_PANDAS_UDF).
Sourcepub fn apply_in_arrow(
&self,
func: CommonInlineUserDefinedFunctionExpression,
) -> DataFrame
pub fn apply_in_arrow( &self, func: CommonInlineUserDefinedFunctionExpression, ) -> DataFrame
Apply an Arrow UDF to each cogroup (cogroup(...).applyInArrow).
Trait Implementations§
Source§impl Clone for CoGroupedData
impl Clone for CoGroupedData
Source§fn clone(&self) -> CoGroupedData
fn clone(&self) -> CoGroupedData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoGroupedData
impl !RefUnwindSafe for CoGroupedData
impl !UnwindSafe for CoGroupedData
impl Send for CoGroupedData
impl Sync for CoGroupedData
impl Unpin for CoGroupedData
impl UnsafeUnpin for CoGroupedData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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