Enum lance_index::scalar::ScalarQuery
source · pub enum ScalarQuery {
Range(Bound<ScalarValue>, Bound<ScalarValue>),
IsIn(Vec<ScalarValue>),
Equals(ScalarValue),
IsNull(),
}Expand description
A query that a scalar index can satisfy
This is a subset of expression operators that is often referred to as the “sargable” operators
Note that negation is not included. Negation should be applied later. For example, to invert an equality query (e.g. all rows where the value is not 7) you can grab all rows where the value = 7 and then do an inverted take (or use a block list instead of an allow list for prefiltering)
Variants§
Range(Bound<ScalarValue>, Bound<ScalarValue>)
Retrieve all row ids where the value is in the given [min, max) range
IsIn(Vec<ScalarValue>)
Retrieve all row ids where the value is in the given set of values
Equals(ScalarValue)
Retrieve all row ids where the value is exactly the given value
IsNull()
Retrieve all row ids where the value is null
Implementations§
Trait Implementations§
source§impl Clone for ScalarQuery
impl Clone for ScalarQuery
source§fn clone(&self) -> ScalarQuery
fn clone(&self) -> ScalarQuery
Returns a copy of the value. Read more
1.0.0 · 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 ScalarQuery
impl Debug for ScalarQuery
source§impl PartialEq for ScalarQuery
impl PartialEq for ScalarQuery
source§fn eq(&self, other: &ScalarQuery) -> bool
fn eq(&self, other: &ScalarQuery) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ScalarQuery
Auto Trait Implementations§
impl RefUnwindSafe for ScalarQuery
impl Send for ScalarQuery
impl Sync for ScalarQuery
impl Unpin for ScalarQuery
impl UnwindSafe for ScalarQuery
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