pub struct FullAccessor<'a, T, Q>where
T: VectorRepr,
Q: AsyncFriendly,{ /* private fields */ }Expand description
An accessor for retrieving full-precision vectors from the BfTreeProvider.
This type implements the following traits:
- [
Accessor] for theBfTreeProvider. - [
BuildQueryComputer].
Trait Implementations§
Source§impl<T, Q> HasId for FullAccessor<'_, T, Q>where
T: VectorRepr,
Q: AsyncFriendly,
impl<T, Q> HasId for FullAccessor<'_, T, Q>where
T: VectorRepr,
Q: AsyncFriendly,
Source§impl<T, Q> SearchAccessor for FullAccessor<'_, T, Q>where
T: VectorRepr,
Q: AsyncFriendly,
impl<T, Q> SearchAccessor for FullAccessor<'_, T, Q>where
T: VectorRepr,
Q: AsyncFriendly,
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
Auto Trait Implementations§
impl<'a, T, Q> !RefUnwindSafe for FullAccessor<'a, T, Q>
impl<'a, T, Q> !UnwindSafe for FullAccessor<'a, T, Q>
impl<'a, T, Q> Freeze for FullAccessor<'a, T, Q>
impl<'a, T, Q> Send for FullAccessor<'a, T, Q>
impl<'a, T, Q> Sync for FullAccessor<'a, T, Q>
impl<'a, T, Q> Unpin for FullAccessor<'a, T, Q>
impl<'a, T, Q> UnsafeUnpin for FullAccessor<'a, T, Q>
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