pub struct IndexState { /* private fields */ }Implementations§
Source§impl IndexState
impl IndexState
pub fn apply(&mut self, entry: IndexEntry) -> Result<(), DbError>
pub fn unique_lookup( &self, collection_id: u32, index_name: &str, index_key: &[u8], ) -> Option<&[u8]>
pub fn non_unique_lookup( &self, collection_id: u32, index_name: &str, index_key: &[u8], ) -> Option<Vec<Vec<u8>>>
Sourcepub fn non_unique_range_lookup(
&self,
collection_id: u32,
index_name: &str,
lo: Option<&ScalarValue>,
lo_inclusive: bool,
hi: Option<&ScalarValue>,
hi_inclusive: bool,
) -> Vec<Vec<u8>>
pub fn non_unique_range_lookup( &self, collection_id: u32, index_name: &str, lo: Option<&ScalarValue>, lo_inclusive: bool, hi: Option<&ScalarValue>, hi_inclusive: bool, ) -> Vec<Vec<u8>>
Collect PK keys for all index entries whose key falls in [lo, hi] (per scalar_partial_cmp).
Sourcepub fn unique_range_lookup(
&self,
collection_id: u32,
index_name: &str,
lo: Option<&ScalarValue>,
lo_inclusive: bool,
hi: Option<&ScalarValue>,
hi_inclusive: bool,
) -> Vec<Vec<u8>>
pub fn unique_range_lookup( &self, collection_id: u32, index_name: &str, lo: Option<&ScalarValue>, lo_inclusive: bool, hi: Option<&ScalarValue>, hi_inclusive: bool, ) -> Vec<Vec<u8>>
Collect PK keys for unique index entries whose key falls in [lo, hi].
Trait Implementations§
Source§impl Clone for IndexState
impl Clone for IndexState
Source§fn clone(&self) -> IndexState
fn clone(&self) -> IndexState
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 IndexState
impl Debug for IndexState
Source§impl Default for IndexState
impl Default for IndexState
Source§fn default() -> IndexState
fn default() -> IndexState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexState
impl RefUnwindSafe for IndexState
impl Send for IndexState
impl Sync for IndexState
impl Unpin for IndexState
impl UnsafeUnpin for IndexState
impl UnwindSafe for IndexState
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