algeon-query-planning 0.1.2

Backend-neutral native query planning, proof, and admission contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::common::VectorRelationBinding;

/// Per-row vector selection parameters.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct VectorTopKParams {
    /// Relation supplying one dense vector per result row group.
    pub input: VectorRelationBinding,
    /// Number of values selected from each input vector.
    pub k: usize,
    /// Select the smallest values when true, or the largest when false.
    pub select_min: bool,
}