pub struct HNSWPQSearchParamsBuilder { /* private fields */ }Expand description
Builder for HNSWPQSearchParams.
Implementations§
Source§impl HNSWPQSearchParamsBuilder
impl HNSWPQSearchParamsBuilder
Sourcepub fn ef<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn ef<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
the size of the dynamic candidate list in the HNSWPQ algorithm retrieval process
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn distance_far<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn distance_far<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
the farthest distance in the range retrieval scenario
Sourcepub fn distance_near<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn distance_near<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
the nearest distance in the range retrieval scenario
Sourcepub fn build(
&self,
) -> Result<HNSWPQSearchParams, HNSWPQSearchParamsBuilderError>
pub fn build( &self, ) -> Result<HNSWPQSearchParams, HNSWPQSearchParamsBuilderError>
Trait Implementations§
Source§impl Clone for HNSWPQSearchParamsBuilder
impl Clone for HNSWPQSearchParamsBuilder
Source§fn clone(&self) -> HNSWPQSearchParamsBuilder
fn clone(&self) -> HNSWPQSearchParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for HNSWPQSearchParamsBuilder
impl RefUnwindSafe for HNSWPQSearchParamsBuilder
impl Send for HNSWPQSearchParamsBuilder
impl Sync for HNSWPQSearchParamsBuilder
impl Unpin for HNSWPQSearchParamsBuilder
impl UnwindSafe for HNSWPQSearchParamsBuilder
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