pub struct VectorIndexWriterConfig {
pub max_buffered_vectors: usize,
pub max_buffer_memory: usize,
pub segment_prefix: String,
pub parallel_build: bool,
pub memory_limit: Option<usize>,
pub auto_flush_threshold: f32,
}Expand description
Configuration for vector index writers common to all index types.
This configuration contains settings that are common across all vector index writer
implementations (Flat, HNSW, IVF), similar to InvertedIndexWriterConfig in the lexical module.
Type-specific settings (dimension, distance metric, HNSW parameters, etc.) are defined
in the respective index configs: FlatIndexConfig, HnswIndexConfig, IvfIndexConfig.
Fields§
§max_buffered_vectors: usizeMaximum number of vectors to buffer before flushing to storage.
max_buffer_memory: usizeMaximum memory usage for buffering (in bytes).
segment_prefix: StringSegment name prefix.
parallel_build: boolBuild index in parallel (when supported by the index type).
memory_limit: Option<usize>Memory limit for index construction (in bytes). If None, no explicit limit is enforced.
auto_flush_threshold: f32Auto-flush threshold: flush when buffer reaches this percentage (0.0-1.0).
Trait Implementations§
Source§impl Clone for VectorIndexWriterConfig
impl Clone for VectorIndexWriterConfig
Source§fn clone(&self) -> VectorIndexWriterConfig
fn clone(&self) -> VectorIndexWriterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VectorIndexWriterConfig
impl Debug for VectorIndexWriterConfig
Source§impl Default for VectorIndexWriterConfig
impl Default for VectorIndexWriterConfig
Source§impl<'de> Deserialize<'de> for VectorIndexWriterConfig
impl<'de> Deserialize<'de> for VectorIndexWriterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for VectorIndexWriterConfig
impl RefUnwindSafe for VectorIndexWriterConfig
impl Send for VectorIndexWriterConfig
impl Sync for VectorIndexWriterConfig
impl Unpin for VectorIndexWriterConfig
impl UnsafeUnpin for VectorIndexWriterConfig
impl UnwindSafe for VectorIndexWriterConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.