pub struct SecondaryIndex {
pub store: SecondaryIndexStore,
pub columns_bitmask: u128,
pub partial_filter: Option<Expr>,
}Fields§
§store: SecondaryIndexStore§columns_bitmask: u128§partial_filter: Option<Expr>Implementations§
Source§impl SecondaryIndex
impl SecondaryIndex
pub fn insert(&mut self, key: EncodedKey, pk: EncodedKey)
pub fn remove(&mut self, key: &EncodedKey, pk: &EncodedKey)
pub fn scan_eq(&self, key: &EncodedKey) -> Vec<EncodedKey>
pub fn scan_range( &self, start: Bound<EncodedKey>, end: Bound<EncodedKey>, ) -> Vec<EncodedKey>
pub fn scan_prefix(&self, prefix: &EncodedKey) -> Vec<EncodedKey>
pub fn scan_prefix_window( &self, prefix: Option<&EncodedKey>, offset: usize, limit: usize, ) -> Vec<EncodedKey>
pub fn rank_of_pk(&self, target_pk: &EncodedKey) -> Option<usize>
pub fn unique_existing(&self, key: &EncodedKey) -> Option<EncodedKey>
pub fn should_include_row( &self, row: &Row, schema: &TableSchema, table_name: &str, ) -> Result<bool, AedbError>
Trait Implementations§
Source§impl Clone for SecondaryIndex
impl Clone for SecondaryIndex
Source§fn clone(&self) -> SecondaryIndex
fn clone(&self) -> SecondaryIndex
Returns a duplicate 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 SecondaryIndex
impl Debug for SecondaryIndex
Source§impl Default for SecondaryIndex
impl Default for SecondaryIndex
Source§fn default() -> SecondaryIndex
fn default() -> SecondaryIndex
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecondaryIndex
impl<'de> Deserialize<'de> for SecondaryIndex
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 SecondaryIndex
impl PartialEq for SecondaryIndex
Source§impl Serialize for SecondaryIndex
impl Serialize for SecondaryIndex
impl Eq for SecondaryIndex
impl StructuralPartialEq for SecondaryIndex
Auto Trait Implementations§
impl Freeze for SecondaryIndex
impl RefUnwindSafe for SecondaryIndex
impl Send for SecondaryIndex
impl Sync for SecondaryIndex
impl Unpin for SecondaryIndex
impl UnsafeUnpin for SecondaryIndex
impl UnwindSafe for SecondaryIndex
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