pub enum CuvsOperation {
BruteForceKnn,
IvfFlat,
IvfPq,
Cagra,
PairwiseDistance,
TopK,
KMeans,
Pca,
}Expand description
Operation identity used by native IR and the SQL adapter.
Variants§
BruteForceKnn
Exact neighbor search over the evaluated dataset.
IvfFlat
Approximate neighbor search with inverted lists storing full vectors.
IvfPq
Approximate neighbor search with product-quantized inverted lists.
Cagra
Approximate neighbor search with a query-local graph index.
PairwiseDistance
Evaluates every pair across two dense relations.
TopK
Selects the smallest or largest values within each dense row.
KMeans
Fits clusters and assigns the input rows.
Pca
Fits principal components and transforms the input rows.
Implementations§
Source§impl CuvsOperation
impl CuvsOperation
Sourcepub fn all() -> impl ExactSizeIterator + Clone
pub fn all() -> impl ExactSizeIterator + Clone
Iterates supported operations in the canonical registry order.
Sourcepub fn descriptor(self) -> &'static CuvsOperationDescriptor
pub fn descriptor(self) -> &'static CuvsOperationDescriptor
Returns this operation’s static options, element support, and output contract.
Sourcepub fn from_sql_function_name(name: &str) -> Option<CuvsOperation>
pub fn from_sql_function_name(name: &str) -> Option<CuvsOperation>
Looks up an exact canonical SQL name; returns None for an unknown name.
This lookup does not normalize case.
Trait Implementations§
Source§impl Clone for CuvsOperation
impl Clone for CuvsOperation
Source§fn clone(&self) -> CuvsOperation
fn clone(&self) -> CuvsOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CuvsOperation
Source§impl Debug for CuvsOperation
impl Debug for CuvsOperation
impl Eq for CuvsOperation
Source§impl Hash for CuvsOperation
impl Hash for CuvsOperation
Source§impl Ord for CuvsOperation
impl Ord for CuvsOperation
Source§fn cmp(&self, other: &CuvsOperation) -> Ordering
fn cmp(&self, other: &CuvsOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CuvsOperation
impl PartialEq for CuvsOperation
Source§impl PartialOrd for CuvsOperation
impl PartialOrd for CuvsOperation
impl StructuralPartialEq for CuvsOperation
Auto Trait Implementations§
impl Freeze for CuvsOperation
impl RefUnwindSafe for CuvsOperation
impl Send for CuvsOperation
impl Sync for CuvsOperation
impl Unpin for CuvsOperation
impl UnsafeUnpin for CuvsOperation
impl UnwindSafe for CuvsOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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> 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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request