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

Function sparse_tile

nodedb-array/src/segment/writer.rs:151–164  ·  view source on GitHub ↗
(s: &crate::schema::ArraySchema)

Source from the content-addressed store, hash-verified

149 }
150
151 fn sparse_tile(s: &crate::schema::ArraySchema) -> SparseTile {
152 let mut b = SparseTileBuilder::new(s);
153 b.push(
154 &[CoordValue::Int64(1), CoordValue::Int64(2)],
155 &[CellValue::Int64(10)],
156 )
157 .unwrap();
158 b.push(
159 &[CoordValue::Int64(3), CoordValue::Int64(0)],
160 &[CellValue::Int64(20)],
161 )
162 .unwrap();
163 b.build()
164 }
165
166 #[test]
167 fn writer_round_trip_via_footer() {

Calls 2

pushMethod · 0.45
buildMethod · 0.45