pub struct LazySegmentManager { /* private fields */ }Expand description
Manager for multiple lazy segments
Implementations§
Source§impl LazySegmentManager
impl LazySegmentManager
Sourcepub fn new(config: LazyConfig) -> Self
pub fn new(config: LazyConfig) -> Self
Create a new manager
Sourcepub fn add_segment(&self, segment: LazySegment)
pub fn add_segment(&self, segment: LazySegment)
Add a segment
Sourcepub fn search(&self, query: &[f32], k: usize) -> Vec<(VectorKey, f32)>
pub fn search(&self, query: &[f32], k: usize) -> Vec<(VectorKey, f32)>
Search across all segments
Sourcepub fn prewarm_all(&self)
pub fn prewarm_all(&self)
Pre-warm all segments (background)
Sourcepub fn num_segments(&self) -> usize
pub fn num_segments(&self) -> usize
Number of segments
Auto Trait Implementations§
impl !Freeze for LazySegmentManager
impl RefUnwindSafe for LazySegmentManager
impl Send for LazySegmentManager
impl Sync for LazySegmentManager
impl Unpin for LazySegmentManager
impl UnsafeUnpin for LazySegmentManager
impl UnwindSafe for LazySegmentManager
Blanket Implementations§
impl<T> Allocation 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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