pub struct GraphSearchRequest<'a> { /* private fields */ }Expand description
One graph-query invocation.
Implementations§
Source§impl<'a> GraphSearchRequest<'a>
impl<'a> GraphSearchRequest<'a>
Sourcepub const fn new(query: &'a [f32], k: usize, seed: u64) -> Self
pub const fn new(query: &'a [f32], k: usize, seed: u64) -> Self
Creates a deterministic SIFT-class request with adaptive shipped ef.
Sourcepub const fn with_profile(self, profile: GraphSearchProfile) -> Self
pub const fn with_profile(self, profile: GraphSearchProfile) -> Self
Selects the dataset-shape profile used by adaptive ef.
Sourcepub const fn with_ef(self, ef: usize) -> Self
pub const fn with_ef(self, ef: usize) -> Self
Overrides adaptive ef with one explicit traversal width.
Sourcepub fn research_floor_ef(self) -> Result<usize, AdaptiveEfError>
pub fn research_floor_ef(self) -> Result<usize, AdaptiveEfError>
Returns the profile’s documented research floor before row-count clamping.
§Errors
Returns AdaptiveEfError for zero k or multiplier overflow.
Sourcepub fn effective_ef(self, rows: usize) -> Result<usize, AdaptiveEfError>
pub fn effective_ef(self, rows: usize) -> Result<usize, AdaptiveEfError>
Resolves the explicit override or adaptive profile against one graph.
§Errors
Returns AdaptiveEfError when k or an explicit override is outside
the graph, or when adaptive multiplier arithmetic overflows.
Sourcepub const fn with_candidate_trace(self) -> Self
pub const fn with_candidate_trace(self) -> Self
Records the logical Bit4 candidate sequence for deterministic diagnostics.
Sourcepub const fn with_observed_core_class(self, core_class: QueryCoreClass) -> Self
pub const fn with_observed_core_class(self, core_class: QueryCoreClass) -> Self
Attaches a caller-observed core class without changing scheduling policy.
Sourcepub const fn with_prefetch(self, prefetch: TraversalPrefetch) -> Self
pub const fn with_prefetch(self, prefetch: TraversalPrefetch) -> Self
Selects whether traversal and rescore issue software prefetch hints.
Trait Implementations§
Source§impl<'a> Clone for GraphSearchRequest<'a>
impl<'a> Clone for GraphSearchRequest<'a>
impl<'a> Copy for GraphSearchRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphSearchRequest<'a>
impl<'a> RefUnwindSafe for GraphSearchRequest<'a>
impl<'a> Send for GraphSearchRequest<'a>
impl<'a> Sync for GraphSearchRequest<'a>
impl<'a> Unpin for GraphSearchRequest<'a>
impl<'a> UnsafeUnpin for GraphSearchRequest<'a>
impl<'a> UnwindSafe for GraphSearchRequest<'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