pub struct VectorEligibleDomain<'a> { /* private fields */ }Implementations§
Source§impl<'a> VectorEligibleDomain<'a>
impl<'a> VectorEligibleDomain<'a>
pub fn new( definition: &'a VectorIndexDescriptor, identity: VectorIndexReadIdentity, embedding: VectorRef<'a>, mode: VectorIndexQueryMode, max_work: usize, account: &QueryMemoryAccount, task: Option<&RuntimeTaskContext>, ) -> Result<Self>
pub fn observe_input(&mut self) -> Result<()>
Sourcepub fn insert(&mut self, identity: &str, vector: VectorRef<'_>) -> Result<()>
pub fn insert(&mut self, identity: &str, vector: VectorRef<'_>) -> Result<()>
The caller supplies the identity and vector from the same canonical row. Retain identities and, in exact mode only, scores. Canonical payloads remain with their reader; filtered ANN must not score the whole domain.
pub fn finish(&mut self) -> Result<()>
pub fn validate( &self, definition: &VectorIndexDescriptor, embedding: &[f32], mode: VectorIndexQueryMode, ) -> Result<()>
pub fn identity(&self) -> VectorIndexReadIdentity
pub fn task(&self) -> &RuntimeTaskContext
pub fn report(&self) -> VectorEligibilityReport
pub fn find_identity(&self, identity: &str) -> Option<&str>
pub fn distances(&self) -> impl Iterator<Item = Result<(&str, f64)>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for VectorEligibleDomain<'a>
impl<'a> !UnwindSafe for VectorEligibleDomain<'a>
impl<'a> Freeze for VectorEligibleDomain<'a>
impl<'a> Send for VectorEligibleDomain<'a>
impl<'a> Sync for VectorEligibleDomain<'a>
impl<'a> Unpin for VectorEligibleDomain<'a>
impl<'a> UnsafeUnpin for VectorEligibleDomain<'a>
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