pub struct AsyncDiskLoadContext {
pub quant_load_context: AsyncQuantLoadContext,
pub num_nodes_to_cache: usize,
pub search_io_limit: usize,
pub num_points: usize,
}Expand description
Context for loading an async disk index.
Fields§
§quant_load_context: AsyncQuantLoadContextAsyncQuantLoadContext for loading quantized data.
num_nodes_to_cache: usizeNumber of nodes to pre-load using breadth-first-search and cache in memory.
search_io_limit: usizeNumber of maximum IO operations to perform during search.
num_points: usizeNumber of vectors in the index.
Trait Implementations§
Source§impl<Data> LoadWith<AsyncDiskLoadContext> for DiskProvider<Data>where
Data: GraphDataType<VectorIdType = u32>,
impl<Data> LoadWith<AsyncDiskLoadContext> for DiskProvider<Data>where
Data: GraphDataType<VectorIdType = u32>,
Source§async fn load_with<P>(
provider: &P,
ctx: &AsyncDiskLoadContext,
) -> ANNResult<Self>where
P: StorageReadProvider,
async fn load_with<P>(
provider: &P,
ctx: &AsyncDiskLoadContext,
) -> ANNResult<Self>where
P: StorageReadProvider,
Load
self form disk using provider for IO-related needs. Argument auxiliary
can be arbitrary metadata required for a successful operation, such as file paths.Auto Trait Implementations§
impl Freeze for AsyncDiskLoadContext
impl RefUnwindSafe for AsyncDiskLoadContext
impl Send for AsyncDiskLoadContext
impl Sync for AsyncDiskLoadContext
impl Unpin for AsyncDiskLoadContext
impl UnwindSafe for AsyncDiskLoadContext
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> 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