Struct polars_lazy::frame::JoinBuilder
source · 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: AsRef<str>>(self, suffix: S) -> Self
pub fn suffix<S: AsRef<str>>(self, suffix: S) -> Self
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.
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
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