pub struct ShardedSparseConfig {
pub shards: usize,
pub balance_weight: f64,
pub df_threshold: u32,
}Expand description
Persisted as _sparse_config.json at the root of the storage.
Fields§
§shards: usizeNumber of shards, at least 1.
balance_weight: f64Routing balance, 0.0..=1.0: 1.0 is round-robin (the default), lower values co-locate vectors sharing dimensions on the same shard.
df_threshold: u32Dimensions with a global document frequency above this are not tracked for routing (they carry no locality information).
Implementations§
Trait Implementations§
Source§impl Clone for ShardedSparseConfig
impl Clone for ShardedSparseConfig
Source§fn clone(&self) -> ShardedSparseConfig
fn clone(&self) -> ShardedSparseConfig
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 moreSource§impl Debug for ShardedSparseConfig
impl Debug for ShardedSparseConfig
Source§impl<'de> Deserialize<'de> for ShardedSparseConfig
impl<'de> Deserialize<'de> for ShardedSparseConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShardedSparseConfig
impl RefUnwindSafe for ShardedSparseConfig
impl Send for ShardedSparseConfig
impl Sync for ShardedSparseConfig
impl Unpin for ShardedSparseConfig
impl UnsafeUnpin for ShardedSparseConfig
impl UnwindSafe for ShardedSparseConfig
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