pub struct JoinBuilder { /* private fields */ }
Implementations§
Source§impl JoinBuilder
impl JoinBuilder
Sourcepub fn new(lf: LazyFrame) -> Self
pub fn new(lf: LazyFrame) -> Self
Create the JoinBuilder
with the provided LazyFrame
as the left table.
pub fn validate(self, validation: JoinValidation) -> Self
Sourcepub fn on<E: AsRef<[Expr]>>(self, on: E) -> Self
pub fn on<E: AsRef<[Expr]>>(self, on: E) -> Self
The expressions you want to join both tables on.
The passed expressions must be valid in both LazyFrame
s in the join.
Sourcepub fn left_on<E: AsRef<[Expr]>>(self, on: E) -> Self
pub fn left_on<E: AsRef<[Expr]>>(self, on: E) -> Self
The expressions you want to join the left table on.
The passed expressions must be valid in the left table.
Sourcepub fn right_on<E: AsRef<[Expr]>>(self, on: E) -> Self
pub fn right_on<E: AsRef<[Expr]>>(self, on: E) -> Self
The expressions you want to join the right table on.
The passed expressions must be valid in the right table.
Sourcepub fn allow_parallel(self, allow: bool) -> Self
pub fn allow_parallel(self, allow: bool) -> Self
Allow parallel table evaluation.
Sourcepub fn force_parallel(self, force: bool) -> Self
pub fn force_parallel(self, force: bool) -> Self
Force parallel table evaluation.
Sourcepub fn join_nulls(self, join_nulls: bool) -> Self
pub fn join_nulls(self, join_nulls: bool) -> Self
Join on null values. By default null values will never produce matches.
Sourcepub fn suffix<S>(self, suffix: S) -> Selfwhere
S: Into<PlSmallStr>,
pub fn suffix<S>(self, suffix: S) -> Selfwhere
S: Into<PlSmallStr>,
Suffix to add duplicate column names in join.
Defaults to "_right"
if this method is never called.
Sourcepub fn coalesce(self, coalesce: JoinCoalesce) -> Self
pub fn coalesce(self, coalesce: JoinCoalesce) -> Self
Whether to coalesce join columns.
Sourcepub fn maintain_order(self, maintain_order: MaintainOrderJoin) -> Self
pub fn maintain_order(self, maintain_order: MaintainOrderJoin) -> Self
Whether to preserve the row order.
pub fn join_where(self, predicates: Vec<Expr>) -> LazyFrame
Auto Trait Implementations§
impl !Freeze for JoinBuilder
impl !RefUnwindSafe for JoinBuilder
impl Send for JoinBuilder
impl Sync for JoinBuilder
impl Unpin for JoinBuilder
impl !UnwindSafe for JoinBuilder
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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