Skip to main content

Index

Struct Index 

Source
pub struct Index {
Show 23 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_ivf_training_samples: 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: IndexKind

Index kind; defaults to Bitmap so pre-existing schemas deserialize unchanged.

§ann_quantization: AnnQuantization

ANN representation. Ignored for non-ANN indexes.

§ann_algorithm: AnnAlgorithm

ANN 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_ivf_training_samples: Option<usize>

IVF k-means training sample cap. 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 Clone for Index

Source§

fn clone(&self) -> Index

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Index

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Index

Source§

fn default() -> Index

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Index

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Index, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Index

Source§

impl PartialEq for Index

Source§

fn eq(&self, other: &Index) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Index

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

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§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynEq for T
where T: Eq + Any,

Source§

fn dyn_eq(&self, other: &(dyn Any + 'static)) -> bool

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V