pub struct IndexConfig {
pub tables: usize,
pub signature_bits: usize,
pub projection_seed: u64,
pub full_scan_threshold: usize,
pub default_probes: usize,
pub default_candidate_limit: usize,
}Expand description
Deterministic approximate-query defaults.
tables, signature_bits, and projection_seed describe the legacy
format-version-1 LSH index. New format-version-2 roots use deterministic
IVF-flat construction and ignore those three compatibility fields.
Fields§
§tables: usizeLegacy format-version-1 LSH table count.
signature_bits: usizeLegacy format-version-1 projection bits per table signature.
projection_seed: u64Legacy format-version-1 projection seed.
full_scan_threshold: usizePoint-count threshold at or below which queries default to exact search.
default_probes: usizeDefault number of approximate index partitions to probe.
default_candidate_limit: usizeDefault maximum number of approximate candidates to discover.
Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§impl Debug for IndexConfig
impl Debug for IndexConfig
Source§impl Default for IndexConfig
impl Default for IndexConfig
Source§impl<'de> Deserialize<'de> for IndexConfigwhere
IndexConfig: Default,
impl<'de> Deserialize<'de> for IndexConfigwhere
IndexConfig: Default,
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
impl Eq for IndexConfig
Source§impl PartialEq for IndexConfig
impl PartialEq for IndexConfig
Source§impl Serialize for IndexConfig
impl Serialize for IndexConfig
impl StructuralPartialEq for IndexConfig
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnsafeUnpin for IndexConfig
impl UnwindSafe for IndexConfig
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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