pub struct DiskIndexBuilderCore<'a, Data, StorageProvider>where
Data: GraphDataType<VectorIdType = u32>,
StorageProvider: StorageReadProvider + StorageWriteProvider,{
pub index_writer: DiskIndexWriter,
pub pq_storage: PQStorage,
pub disk_build_param: DiskIndexBuildParameters,
pub index_configuration: IndexConfiguration,
pub chunking_config: ChunkingConfig,
pub checkpoint_record_manager: Box<dyn CheckpointManager>,
pub storage_provider: &'a StorageProvider,
pub _phantom: PhantomData<Data>,
}Expand description
Core shared functionality between sync and async disk index builders. Contains only fields and methods that are truly needed by both builder types.
Fields§
§index_writer: DiskIndexWriter§pq_storage: PQStorage§disk_build_param: DiskIndexBuildParameters§index_configuration: IndexConfiguration§chunking_config: ChunkingConfig§checkpoint_record_manager: Box<dyn CheckpointManager>§storage_provider: &'a StorageProvider§_phantom: PhantomData<Data>Auto Trait Implementations§
impl<'a, Data, StorageProvider> Freeze for DiskIndexBuilderCore<'a, Data, StorageProvider>
impl<'a, Data, StorageProvider> !RefUnwindSafe for DiskIndexBuilderCore<'a, Data, StorageProvider>
impl<'a, Data, StorageProvider> Send for DiskIndexBuilderCore<'a, Data, StorageProvider>
impl<'a, Data, StorageProvider> Sync for DiskIndexBuilderCore<'a, Data, StorageProvider>
impl<'a, Data, StorageProvider> Unpin for DiskIndexBuilderCore<'a, Data, StorageProvider>where
Data: Unpin,
impl<'a, Data, StorageProvider> UnsafeUnpin for DiskIndexBuilderCore<'a, Data, StorageProvider>
impl<'a, Data, StorageProvider> !UnwindSafe for DiskIndexBuilderCore<'a, Data, StorageProvider>
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