pub struct Index {Show 22 fields
pub name: String,
pub columns: Vec<String>,
pub unique: bool,
pub kind: IndexKind,
pub ann_quantization: AnnQuantization,
pub ann_algorithm: AnnAlgorithm,
pub predicate: Option<String>,
pub ann_m: Option<usize>,
pub ann_ef_construction: Option<usize>,
pub ann_ef_search: Option<usize>,
pub ann_diskann_r: Option<usize>,
pub ann_diskann_l: Option<usize>,
pub ann_diskann_beam_width: Option<usize>,
pub ann_diskann_alpha: Option<u32>,
pub ann_ivf_nlist: Option<usize>,
pub ann_ivf_nprobe: Option<usize>,
pub ann_pq_training_samples: Option<usize>,
pub ann_pq_seed: Option<u64>,
pub ann_pq_rerank_factor: Option<usize>,
pub minhash_permutations: Option<usize>,
pub minhash_bands: Option<usize>,
pub learned_range_epsilon: Option<usize>,
}Expand description
An index on one or more columns.
Fields§
§name: String§columns: Vec<String>§unique: bool§kind: IndexKindIndex kind; defaults to Bitmap so pre-existing schemas deserialize
unchanged.
ann_quantization: AnnQuantizationANN representation. Ignored for non-ANN indexes.
ann_algorithm: AnnAlgorithmANN graph/structure algorithm (Phase 2). Defaults to HNSW. Ignored for
non-ANN indexes. Orthogonal to ann_quantization.
predicate: Option<String>Optional SQL predicate for a partial index.
ann_m: Option<usize>HNSW graph degree. Engine default when omitted.
ann_ef_construction: Option<usize>HNSW construction search width. Engine default when omitted.
ann_ef_search: Option<usize>HNSW query search width. Engine default when omitted.
ann_diskann_r: Option<usize>DiskANN max graph degree R. Engine default when omitted.
ann_diskann_l: Option<usize>DiskANN build search-list size L. Engine default when omitted.
ann_diskann_beam_width: Option<usize>DiskANN query beam width. Engine default when omitted.
ann_diskann_alpha: Option<u32>DiskANN robust-prune alpha × 100 (120 = 1.2). Engine default when omitted.
ann_ivf_nlist: Option<usize>IVF inverted-list (centroid) count. Engine default when omitted.
ann_ivf_nprobe: Option<usize>IVF probe count at query time. Engine default when omitted.
ann_pq_training_samples: Option<usize>Product-quantizer training sample cap. Engine default when omitted.
ann_pq_seed: Option<u64>Product-quantizer deterministic training seed. Engine default when omitted.
ann_pq_rerank_factor: Option<usize>Product-quantizer exact-rerank factor (0 disables). Engine default when omitted.
minhash_permutations: Option<usize>MinHash permutation count. Engine default when omitted.
minhash_bands: Option<usize>MinHash LSH band count. Engine default when omitted.
learned_range_epsilon: Option<usize>Learned-range error bound. Engine default when omitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Index, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Index, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for Index
Source§impl Serialize for Index
impl Serialize for Index
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnsafeUnpin for Index
impl UnwindSafe for Index
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more