MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / apply_v_row_number

Function apply_v_row_number

nodedb-query/src/window/value_eval.rs:222–226  ·  view source on GitHub ↗
(rows: &mut [Vec<Value>], indices: &[usize], write_col: usize)

Source from the content-addressed store, hash-verified

220// ── Ranking functions ─────────────────────────────────────────────────────────
221
222fn apply_v_row_number(rows: &mut [Vec<Value>], indices: &[usize], write_col: usize) {
223 for (rank, &i) in indices.iter().enumerate() {
224 set_cell(rows, i, write_col, Value::Integer((rank + 1) as i64));
225 }
226}
227
228fn apply_v_rank(
229 rows: &mut [Vec<Value>],

Callers 1

Calls 2

set_cellFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected