pub struct LsmConfig {
pub dim: usize,
pub mutable_capacity: usize,
pub wal_path: PathBuf,
pub sync_wal: bool,
pub wal_batch_size: usize,
pub build_threads: usize,
pub auto_compact: bool,
pub compact_threshold: usize,
}Expand description
Configuration for async LSM
Fields§
§dim: usizeVector dimension
mutable_capacity: usizeMutable segment capacity (vectors)
wal_path: PathBufWAL directory path
sync_wal: boolSync WAL on every write
wal_batch_size: usizeWAL batch size before sync
build_threads: usizeBackground worker threads
auto_compact: boolEnable auto-compaction
compact_threshold: usizeCompaction threshold (number of sealed segments)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LsmConfig
impl RefUnwindSafe for LsmConfig
impl Send for LsmConfig
impl Sync for LsmConfig
impl Unpin for LsmConfig
impl UnsafeUnpin for LsmConfig
impl UnwindSafe for LsmConfig
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> 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