pub enum JoinValue {
Null,
Boolean(bool),
Integer(i64),
Float(f64),
String(String),
}Expand description
A value that can be compared in join conditions.
Variants§
Null
Null value.
Boolean(bool)
Boolean value.
Integer(i64)
Integer value (stored as i64 for uniformity).
Float(f64)
Float value (stored as f64 for uniformity).
String(String)
String value.
Implementations§
Source§impl JoinValue
impl JoinValue
Sourcepub fn to_hash_key(&self) -> String
pub fn to_hash_key(&self) -> String
Convert to hashable key for hash join.
Sourcepub fn equals(&self, other: &JoinValue) -> Option<bool>
pub fn equals(&self, other: &JoinValue) -> Option<bool>
Compare with another value for equality.
Sourcepub fn matches_like(&self, pattern: &JoinValue) -> Option<bool>
pub fn matches_like(&self, pattern: &JoinValue) -> Option<bool>
Check if string matches LIKE pattern.
Sourcepub fn like_match(text: &str, pattern: &str) -> bool
pub fn like_match(text: &str, pattern: &str) -> bool
Simple LIKE pattern matching (supports % and _).
Trait Implementations§
impl StructuralPartialEq for JoinValue
Auto Trait Implementations§
impl Freeze for JoinValue
impl RefUnwindSafe for JoinValue
impl Send for JoinValue
impl Sync for JoinValue
impl Unpin for JoinValue
impl UnsafeUnpin for JoinValue
impl UnwindSafe for JoinValue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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