pub struct AsyncSecondaryIndexQuery<'query, 'engine, S: AsyncIndexedStore> { /* private fields */ }Expand description
Finite-budget async query session over one immutable index tree.
Implementations§
Source§impl<'query, 'engine, S> AsyncSecondaryIndexQuery<'query, 'engine, S>where
S: AsyncIndexedStore + Clone,
<S as AsyncStore>::Error: Send + Sync,
<S as AsyncManifestStore>::Error: Send + Sync,
impl<'query, 'engine, S> AsyncSecondaryIndexQuery<'query, 'engine, S>where
S: AsyncIndexedStore + Clone,
<S as AsyncStore>::Error: Send + Sync,
<S as AsyncManifestStore>::Error: Send + Sync,
pub async fn exact_page( &self, term: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn prefix_page( &self, prefix: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn range_page( &self, start: &[u8], end: Option<&[u8]>, cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn exact_reverse_page( &self, term: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn prefix_reverse_page( &self, prefix: &[u8], cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn range_reverse_page( &self, start: &[u8], end: Option<&[u8]>, cursor: Option<&SecondaryIndexCursor>, limit: usize, ) -> Result<SecondaryIndexPage, Error>
pub async fn records( &self, term: &[u8], ) -> Result<Vec<IndexedSourceRecord>, Error>
Auto Trait Implementations§
impl<'query, 'engine, S> Freeze for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: Freeze,
impl<'query, 'engine, S> RefUnwindSafe for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: RefUnwindSafe,
impl<'query, 'engine, S> Send for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: Send,
impl<'query, 'engine, S> Sync for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: Sync,
impl<'query, 'engine, S> Unpin for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: Unpin,
impl<'query, 'engine, S> UnsafeUnpin for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: UnsafeUnpin,
impl<'query, 'engine, S> UnwindSafe for AsyncSecondaryIndexQuery<'query, 'engine, S>where
&'query AsyncSecondaryIndexSnapshot<'engine, S>: UnwindSafe,
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