pub struct Pipeline { /* private fields */ }Expand description
Fluent builder for data pipelines.
Implementations§
Source§impl Pipeline
impl Pipeline
Sourcepub fn summarize(self, keys: Vec<String>, aggs: Vec<(String, DExpr)>) -> Self
pub fn summarize(self, keys: Vec<String>, aggs: Vec<(String, DExpr)>) -> Self
Add a summarize (aggregate) step to the pipeline.
Sourcepub fn select(self, columns: Vec<String>) -> Self
pub fn select(self, columns: Vec<String>) -> Self
Add a column projection step to the pipeline.
Sourcepub fn inner_join(self, right: DataFrame, left_on: &str, right_on: &str) -> Self
pub fn inner_join(self, right: DataFrame, left_on: &str, right_on: &str) -> Self
Add an inner join step to the pipeline.
Sourcepub fn left_join(self, right: DataFrame, left_on: &str, right_on: &str) -> Self
pub fn left_join(self, right: DataFrame, left_on: &str, right_on: &str) -> Self
Add a left join step to the pipeline.
Sourcepub fn cross_join(self, right: DataFrame) -> Self
pub fn cross_join(self, right: DataFrame) -> Self
Add a cross (cartesian) join step to the pipeline.
Sourcepub fn plan(&self) -> &LogicalPlan
pub fn plan(&self) -> &LogicalPlan
Get the logical plan (for inspection/testing).
Auto Trait Implementations§
impl Freeze for Pipeline
impl RefUnwindSafe for Pipeline
impl Send for Pipeline
impl Sync for Pipeline
impl Unpin for Pipeline
impl UnsafeUnpin for Pipeline
impl UnwindSafe for Pipeline
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> 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