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

Function make_sparse

nodedb-array/src/segment/reader.rs:407–415  ·  view source on GitHub ↗
(s: &crate::schema::ArraySchema, base: i64)

Source from the content-addressed store, hash-verified

405 }
406
407 fn make_sparse(s: &crate::schema::ArraySchema, base: i64) -> SparseTile {
408 let mut b = SparseTileBuilder::new(s);
409 b.push(
410 &[CoordValue::Int64(base), CoordValue::Int64(base + 1)],
411 &[CellValue::Int64(base * 10)],
412 )
413 .unwrap();
414 b.build()
415 }
416
417 #[test]
418 fn reader_round_trips_sparse_tiles() {

Calls 2

pushMethod · 0.45
buildMethod · 0.45