pub struct FilteredQuery<V> { /* private fields */ }Expand description
Type that can be used to specify a query with a filter expression. The Readme.md file in the label-filter folder describes the format of the query expression.
Implementations§
Trait Implementations§
Source§impl<V: Clone> Clone for FilteredQuery<V>
impl<V: Clone> Clone for FilteredQuery<V>
Source§fn clone(&self) -> FilteredQuery<V>
fn clone(&self) -> FilteredQuery<V>
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<'q, DP, Strategy, Q> DefaultPostProcessor<DocumentProvider<DP, RoaringAttributeStore<<DP as DataProvider>::InternalId>>, &'q FilteredQuery<Q>> for InlineBetaStrategy<Strategy>
[DefaultPostProcessor] delegation for InlineBetaStrategy. The processor wraps
the inner strategy’s default processor with FilterResults.
impl<'q, DP, Strategy, Q> DefaultPostProcessor<DocumentProvider<DP, RoaringAttributeStore<<DP as DataProvider>::InternalId>>, &'q FilteredQuery<Q>> for InlineBetaStrategy<Strategy>
[DefaultPostProcessor] delegation for InlineBetaStrategy. The processor wraps
the inner strategy’s default processor with FilterResults.
Source§type Processor = FilterResults<<Strategy as DefaultPostProcessor<DP, &'q Q>>::Processor>
type Processor = FilterResults<<Strategy as DefaultPostProcessor<DP, &'q Q>>::Processor>
The default post-processor type.
Source§fn default_post_processor(&self) -> Self::Processor
fn default_post_processor(&self) -> Self::Processor
Create the default post-processor.
Source§impl<'q, DP, Strategy, Q> SearchStrategy<DocumentProvider<DP, RoaringAttributeStore<<DP as DataProvider>::InternalId>>, &'q FilteredQuery<Q>> for InlineBetaStrategy<Strategy>
impl<'q, DP, Strategy, Q> SearchStrategy<DocumentProvider<DP, RoaringAttributeStore<<DP as DataProvider>::InternalId>>, &'q FilteredQuery<Q>> for InlineBetaStrategy<Strategy>
Source§type QueryComputer = InlineBetaComputer<<Strategy as SearchStrategy<DP, &'q Q>>::QueryComputer>
type QueryComputer = InlineBetaComputer<<Strategy as SearchStrategy<DP, &'q Q>>::QueryComputer>
The computer used by the associated accessor. Read more
Source§type SearchAccessorError = ANNError
type SearchAccessorError = ANNError
An error that can occur when getting a search_accessor.
Source§type SearchAccessor<'a> = EncodedDocumentAccessor<<Strategy as SearchStrategy<DP, &'q Q>>::SearchAccessor<'a>>
type SearchAccessor<'a> = EncodedDocumentAccessor<<Strategy as SearchStrategy<DP, &'q Q>>::SearchAccessor<'a>>
The concrete type of the accessor that is used to access
Self during the greedy
graph search. The query will be provided to the accessor exactly once during search
to construct the query computer.Source§fn search_accessor<'a>(
&'a self,
provider: &'a DocumentProvider<DP, RoaringAttributeStore<DP::InternalId>>,
context: &'a DP::Context,
) -> Result<Self::SearchAccessor<'a>, Self::SearchAccessorError>
fn search_accessor<'a>( &'a self, provider: &'a DocumentProvider<DP, RoaringAttributeStore<DP::InternalId>>, context: &'a DP::Context, ) -> Result<Self::SearchAccessor<'a>, Self::SearchAccessorError>
Construct and return the search accessor.
Auto Trait Implementations§
impl<V> Freeze for FilteredQuery<V>where
V: Freeze,
impl<V> RefUnwindSafe for FilteredQuery<V>where
V: RefUnwindSafe,
impl<V> Send for FilteredQuery<V>where
V: Send,
impl<V> Sync for FilteredQuery<V>where
V: Sync,
impl<V> Unpin for FilteredQuery<V>where
V: Unpin,
impl<V> UnsafeUnpin for FilteredQuery<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for FilteredQuery<V>where
V: 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