pub struct SecondaryIndexSnapshot<'a, S: Store> { /* private fields */ }Expand description
Query handle for one exact hidden-index checkpoint.
Implementations§
Source§impl<'a, S: Store> SecondaryIndexSnapshot<'a, S>
impl<'a, S: Store> SecondaryIndexSnapshot<'a, S>
pub fn name(&self) -> &[u8] ⓘ
pub fn descriptor(&self) -> &SecondaryIndexDescriptor
pub fn checkpoint(&self) -> &IndexCheckpoint
pub fn tree(&self) -> &Tree
pub fn exact(&self, term: &[u8]) -> Result<Vec<SecondaryIndexMatch>, Error>
pub fn prefix(&self, prefix: &[u8]) -> Result<Vec<SecondaryIndexMatch>, Error>
pub fn range( &self, start_term: &[u8], end_term: Option<&[u8]>, ) -> Result<Vec<SecondaryIndexMatch>, Error>
pub fn primary_keys(&self, term: &[u8]) -> Result<Vec<Vec<u8>>, Error>
pub fn projected(&self, term: &[u8]) -> Result<Vec<ProjectedIndexEntry>, Error>
Sourcepub fn records(&self, term: &[u8]) -> Result<Vec<IndexedSourceRecord>, Error>
pub fn records(&self, term: &[u8]) -> Result<Vec<IndexedSourceRecord>, Error>
Resolve matching primary keys with one ordered batched source read.
pub fn exact_page( &self, term: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub fn exact_reverse_page( &self, term: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub fn prefix_page( &self, prefix: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub fn prefix_reverse_page( &self, prefix: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub fn range_page( &self, start_term: &[u8], end_term: Option<&[u8]>, cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub fn range_reverse_page( &self, start_term: &[u8], end_term: Option<&[u8]>, cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
Auto Trait Implementations§
impl<'a, S> Freeze for SecondaryIndexSnapshot<'a, S>
impl<'a, S> RefUnwindSafe for SecondaryIndexSnapshot<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for SecondaryIndexSnapshot<'a, S>
impl<'a, S> Sync for SecondaryIndexSnapshot<'a, S>
impl<'a, S> Unpin for SecondaryIndexSnapshot<'a, S>
impl<'a, S> UnsafeUnpin for SecondaryIndexSnapshot<'a, S>
impl<'a, S> UnwindSafe for SecondaryIndexSnapshot<'a, S>where
S: RefUnwindSafe,
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> 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