pub struct DiskIndexBuildParameters { /* private fields */ }Expand description
Parameters specific for disk index construction.
Implementations§
Source§impl DiskIndexBuildParameters
impl DiskIndexBuildParameters
Sourcepub fn new(
build_memory_limit: MemoryBudget,
build_quantization: QuantizationType,
search_pq_chunks: NumPQChunks,
) -> Self
pub fn new( build_memory_limit: MemoryBudget, build_quantization: QuantizationType, search_pq_chunks: NumPQChunks, ) -> Self
Create new build parameters from already validated components.
Sourcepub fn build_memory_limit(&self) -> MemoryBudget
pub fn build_memory_limit(&self) -> MemoryBudget
Get the configured memory budget for index building.
Sourcepub fn build_quantization(&self) -> &QuantizationType
pub fn build_quantization(&self) -> &QuantizationType
Get quantization type used to instantiate quantized DataProvider for DiskANN Index during build
Sourcepub fn search_pq_chunks(&self) -> NumPQChunks
pub fn search_pq_chunks(&self) -> NumPQChunks
Get user specified PQ chunks count for in-memory search data.
Trait Implementations§
Source§impl Clone for DiskIndexBuildParameters
impl Clone for DiskIndexBuildParameters
Source§fn clone(&self) -> DiskIndexBuildParameters
fn clone(&self) -> DiskIndexBuildParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiskIndexBuildParameters
Source§impl Debug for DiskIndexBuildParameters
impl Debug for DiskIndexBuildParameters
Source§impl PartialEq for DiskIndexBuildParameters
impl PartialEq for DiskIndexBuildParameters
Source§fn eq(&self, other: &DiskIndexBuildParameters) -> bool
fn eq(&self, other: &DiskIndexBuildParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiskIndexBuildParameters
Auto Trait Implementations§
impl Freeze for DiskIndexBuildParameters
impl RefUnwindSafe for DiskIndexBuildParameters
impl Send for DiskIndexBuildParameters
impl Sync for DiskIndexBuildParameters
impl Unpin for DiskIndexBuildParameters
impl UnsafeUnpin for DiskIndexBuildParameters
impl UnwindSafe for DiskIndexBuildParameters
Blanket Implementations§
impl<T> AsyncFriendly for T
impl<T> Boilerplate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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