pub struct KNNOperator {
pub query_vector: Vec<f32>,
pub k: usize,
pub field: FieldName,
}Expand description
KNN_k(q): top-k nearest neighbors by cosine similarity
(Definition 3.1.3).
Fields§
§query_vector: Vec<f32>§k: usize§field: FieldNameImplementations§
Trait Implementations§
Source§impl Operator for KNNOperator
impl Operator for KNNOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl Freeze for KNNOperator
impl RefUnwindSafe for KNNOperator
impl Send for KNNOperator
impl Sync for KNNOperator
impl Unpin for KNNOperator
impl UnsafeUnpin for KNNOperator
impl UnwindSafe for KNNOperator
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