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

Method into_sparse

nodedb/src/engine/array/compaction/merger.rs:406–419  ·  view source on GitHub ↗
(self, schema: &ArraySchema)

Source from the content-addressed store, hash-verified

404 }
405
406 fn into_sparse(self, schema: &ArraySchema) -> ArrayResult<SparseTile> {
407 let mut b = SparseTileBuilder::new(schema);
408 for row in self.rows {
409 b.push_row(SparseRow {
410 coord: &row.coord,
411 attrs: &row.attrs,
412 surrogate: row.surrogate,
413 valid_from_ms: row.valid_from_ms,
414 valid_until_ms: row.valid_until_ms,
415 kind: row.kind,
416 })?;
417 }
418 Ok(b.build())
419 }
420}
421
422#[cfg(test)]

Callers 1

build_segment_bytesFunction · 0.80

Calls 2

push_rowMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected