pub fn new(
        src: NodeIndex,
        order: Vec<(usize, OrderType)>,
        group_by: Vec<usize>,
        k: usize,
    ) -> Self {
        let mut group_by = group_by;
        group_by.sort();

        TopK {
            src: src.into(),

            us: None,
            cols: 0,

            group_by,
            order: order.into(),
            k,
        }
    }
/// Construct a new TopK operator.
///
/// `src` is this operator's ancestor, `over` is the column to compute the top K over,
/// `group_by` indicates the columns that this operator is keyed on, and k is the maximum number
/// of results per group.
Construct a new TopK operator.
Construct a new TopK operator .
pub fn new(
        src: NodeIndex,
        order: Vec<(usize, OrderType)>,
        group_by: Vec<usize>,
        k: usize,
    ) -> Self {
        let mut group_by = group_by;
        group_by.sort();
        TopK {
            src: src.into(),
            us: None,
            cols: 0,
            group_by,
            order: order.into(),
            k,
        }
    }
pub fn new ( src : NodeIndex , order : Vec < ( usize , OrderType ) > , group_by : Vec < usize > , k : usize , ) -> Self { let mut group_by = group_by ; group_by . sort ( ) ; TopK { src : src . into ( ) , us : None , cols : 0 , group_by , order : order . into ( ) , k , } }
Construct a new TopK operator.
Construct a new TopK operator .
src
NodeIndex
order
Vec<(usize, OrderType)>
group_by
Vec<usize>
k
usize
src
NodeIndex
order
Vec<(usize, OrderType)>
group_by
Vec<usize>
k
usize