pub enum HashKey {
Null,
Bool(bool),
Int64(i64),
String(String),
Composite(Vec<HashKey>),
}Expand description
A hash key that can be hashed and compared for join operations.
Variants§
Null
Null key.
Bool(bool)
Boolean key.
Int64(i64)
Integer key.
String(String)
String key (using the string content for hashing).
Composite(Vec<HashKey>)
Composite key for multi-column joins.
Implementations§
Source§impl HashKey
impl HashKey
Sourcepub fn from_value(value: &Value) -> Self
pub fn from_value(value: &Value) -> Self
Creates a hash key from a Value.
Sourcepub fn from_column(column: &ValueVector, row: usize) -> Option<Self>
pub fn from_column(column: &ValueVector, row: usize) -> Option<Self>
Creates a hash key from a column value at a given row.
Trait Implementations§
impl Eq for HashKey
impl StructuralPartialEq for HashKey
Auto Trait Implementations§
impl Freeze for HashKey
impl RefUnwindSafe for HashKey
impl Send for HashKey
impl Sync for HashKey
impl Unpin for HashKey
impl UnwindSafe for HashKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.