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

Function put_cell

nodedb/src/engine/array/purge/plan.rs:330–345  ·  view source on GitHub ↗
(engine: &mut ArrayEngine, x: i64, v: i64, sys_ms: i64, lsn: u64)

Source from the content-addressed store, hash-verified

328 }
329
330 fn put_cell(engine: &mut ArrayEngine, x: i64, v: i64, sys_ms: i64, lsn: u64) {
331 engine
332 .put_cells(
333 &test_aid(),
334 vec![ArrayPutCell {
335 coord: vec![CoordValue::Int64(x)],
336 attrs: vec![CellValue::Int64(v)],
337 surrogate: Surrogate::ZERO,
338 system_from_ms: sys_ms,
339 valid_from_ms: 0,
340 valid_until_ms: i64::MAX,
341 }],
342 lsn,
343 )
344 .unwrap();
345 }
346
347 #[test]
348 fn plan_empty_array_returns_empty_plan() {

Calls 2

put_cellsMethod · 0.80
test_aidFunction · 0.70