pub enum WhereExpression {
Comparison(ComparisonExpression),
And(Vec<WhereExpression>),
Or(Vec<WhereExpression>),
Not(Box<WhereExpression>),
Parentheses(Box<WhereExpression>),
}Expand description
Advanced WHERE expression tree
Variants§
Comparison(ComparisonExpression)
Simple comparison
And(Vec<WhereExpression>)
Logical AND
Or(Vec<WhereExpression>)
Logical OR
Not(Box<WhereExpression>)
Logical NOT
Parentheses(Box<WhereExpression>)
Parenthesized expression
Implementations§
Source§impl WhereExpression
impl WhereExpression
Sourcepub fn get_column_refs(&self) -> Vec<ColumnRef>
pub fn get_column_refs(&self) -> Vec<ColumnRef>
Get all column references in this WHERE expression
Sourcepub fn can_pushdown_to_sstable(&self) -> bool
pub fn can_pushdown_to_sstable(&self) -> bool
Check if this WHERE expression can be pushed down to SSTable level.
OR and NOT are excluded: efficient pushdown of those would require index intersection / negative scans we don’t currently support.
Trait Implementations§
Source§impl Clone for WhereExpression
impl Clone for WhereExpression
Source§fn clone(&self) -> WhereExpression
fn clone(&self) -> WhereExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WhereExpression
impl Debug for WhereExpression
Source§impl<'de> Deserialize<'de> for WhereExpression
impl<'de> Deserialize<'de> for WhereExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WhereExpression
impl PartialEq for WhereExpression
Source§fn eq(&self, other: &WhereExpression) -> bool
fn eq(&self, other: &WhereExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WhereExpression
impl Serialize for WhereExpression
impl StructuralPartialEq for WhereExpression
Auto Trait Implementations§
impl Freeze for WhereExpression
impl RefUnwindSafe for WhereExpression
impl Send for WhereExpression
impl Sync for WhereExpression
impl Unpin for WhereExpression
impl UnsafeUnpin for WhereExpression
impl UnwindSafe for WhereExpression
Blanket Implementations§
impl<T> Allocation for T
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