pub struct QuantAccessor<'a, T>where
T: VectorRepr,{ /* private fields */ }Expand description
An accessor that retrieves the quantized portion of the BfTreeProvider.
This type implements the following traits:
- [
Accessor] for theBfTreeProvider.
Trait Implementations§
Source§impl<T> HasId for QuantAccessor<'_, T>where
T: VectorRepr,
impl<T> HasId for QuantAccessor<'_, T>where
T: VectorRepr,
Source§impl<T> SearchAccessor for QuantAccessor<'_, T>where
T: VectorRepr,
impl<T> SearchAccessor for QuantAccessor<'_, T>where
T: VectorRepr,
Source§fn starting_points(&self) -> impl Future<Output = ANNResult<Vec<u32>>>
fn starting_points(&self) -> impl Future<Output = ANNResult<Vec<u32>>>
Return the starting points for this search.
Source§async fn start_point_distances<F>(&mut self, f: F) -> ANNResult<()>
async fn start_point_distances<F>(&mut self, f: F) -> ANNResult<()>
Compute the distance to all start points, invoking
f with all results.Source§async fn expand_beam<Itr, P, F>(
&mut self,
ids: Itr,
pred: P,
on_neighbors: F,
) -> ANNResult<()>
async fn expand_beam<Itr, P, F>( &mut self, ids: Itr, pred: P, on_neighbors: F, ) -> ANNResult<()>
A primitive routine used by graph search. This is purposely implemented as a
coarse-grained operation to enable optimization opportunities by the backend. Read more
Source§fn terminate_early(&mut self) -> bool
fn terminate_early(&mut self) -> bool
Indicate that search should terminate as soon as possible. Read more
Source§impl<'a, T> SearchPostProcess<QuantAccessor<'a, T>, &[T]> for Rerankwhere
T: VectorRepr,
impl<'a, T> SearchPostProcess<QuantAccessor<'a, T>, &[T]> for Rerankwhere
T: VectorRepr,
type Error = ANNError
Source§fn post_process<I, B>(
&self,
accessor: &mut QuantAccessor<'a, T>,
query: &[T],
candidates: I,
output: &mut B,
) -> impl Future<Output = Result<usize, Self::Error>> + Send
fn post_process<I, B>( &self, accessor: &mut QuantAccessor<'a, T>, query: &[T], candidates: I, output: &mut B, ) -> impl Future<Output = Result<usize, Self::Error>> + Send
Populate
output with the entries in candidates. Correct implementations must
return the number of results copied into output on success.Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for QuantAccessor<'a, T>
impl<'a, T> !UnwindSafe for QuantAccessor<'a, T>
impl<'a, T> Freeze for QuantAccessor<'a, T>
impl<'a, T> Send for QuantAccessor<'a, T>
impl<'a, T> Sync for QuantAccessor<'a, T>
impl<'a, T> Unpin for QuantAccessor<'a, T>
impl<'a, T> UnsafeUnpin for QuantAccessor<'a, T>
Blanket Implementations§
impl<T> AsyncFriendly for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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