pub struct ValueIndexCache { /* private fields */ }Implementations§
Source§impl ValueIndexCache
impl ValueIndexCache
pub fn visit_key_candidates_with_catalog( &self, predicate: &Predicate, catalog: Option<&dyn SQLValueCatalog>, control: &StorageReadControl, visit: &mut dyn FnMut(DocId) -> Result<(), SQLError>, ) -> Result<bool, SQLError>
pub fn visit_observing_with_catalog( &self, predicate: &Predicate, catalog: Option<&dyn SQLValueCatalog>, control: &StorageReadControl, observe: impl FnOnce() -> Result<(), SQLError>, visit: &mut dyn FnMut(DocId) -> Result<(), SQLError>, ) -> Result<bool, SQLError>
pub fn scan_observing_with_catalog( &self, predicate: &Predicate, catalog: Option<&dyn SQLValueCatalog>, control: &StorageReadControl, observe: impl FnOnce() -> Result<(), SQLError>, ) -> Result<Option<PostingList>, SQLError>
pub fn field_candidates( &self, value: &Value, control: &StorageReadControl, ) -> Result<Option<PostingList>, SQLError>
pub fn estimate_cardinality( &self, predicate: &Predicate, control: &StorageReadControl, ) -> Result<Option<usize>, SQLError>
Source§impl ValueIndexCache
impl ValueIndexCache
pub fn is_carried(&self) -> bool
pub fn is_spilled(&self) -> bool
pub fn stored_value( &self, id: DocId, control: &StorageReadControl, ) -> Result<Option<Cow<'_, Value>>, SQLError>
pub fn contains( &self, id: DocId, control: &StorageReadControl, ) -> Result<bool, SQLError>
Sourcepub fn replace(
&mut self,
id: DocId,
value: Option<&Value>,
control: &StorageReadControl,
) -> Result<(), SQLError>
pub fn replace( &mut self, id: DocId, value: Option<&Value>, control: &StorageReadControl, ) -> Result<(), SQLError>
Stored expression keys remain the old source of truth when removing a row. A failed migration or replacement publishes neither a partial tree nor new eligibility flags.
pub fn with_use(self, field: &str, carried: bool) -> Self
pub fn set_use(&mut self, field: &str, carried: bool)
pub fn clear(&mut self)
pub fn supports(&self, predicate: &Predicate) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ValueIndexCache
impl !UnwindSafe for ValueIndexCache
impl Freeze for ValueIndexCache
impl Send for ValueIndexCache
impl Sync for ValueIndexCache
impl Unpin for ValueIndexCache
impl UnsafeUnpin for ValueIndexCache
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more