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

Function ceiling_kinds

nodedb-array/src/query/retention.rs:425–437  ·  view source on GitHub ↗

Collect RowKinds from ceiling tile rows, keyed by coord.

(tile: &SparseTile)

Source from the content-addressed store, hash-verified

423
424 /// Collect RowKinds from ceiling tile rows, keyed by coord.
425 fn ceiling_kinds(tile: &SparseTile) -> HashMap<i64, RowKind> {
426 decode_sparse_rows(tile)
427 .unwrap()
428 .into_iter()
429 .map(|r| {
430 let x = match r.coord[0] {
431 CoordValue::Int64(x) => x,
432 _ => panic!("unexpected coord type"),
433 };
434 (x, r.kind)
435 })
436 .collect()
437 }
438
439 // ── Test 1 ──────────────────────────────────────────────────────────────
440

Callers 1

Calls 2

decode_sparse_rowsFunction · 0.85
collectMethod · 0.80

Tested by 1