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

Method row_count

nodedb-array/src/tile/sparse_tile.rs:173–175  ·  view source on GitHub ↗

Total physical row count including sentinel (Tombstone / GdprErased) rows. Use this as the upper bound when iterating over rows; check [`row_kind`](Self::row_kind) inside the loop and skip non-Live rows when reading attribute columns. The attribute column vectors are indexed by the **live-row index** (incremented only for Live rows), not by the iteration index — confusing the two yields incorrect

(&self)

Source from the content-addressed store, hash-verified

171 /// not by the iteration index — confusing the two yields incorrect or
172 /// out-of-bounds reads.
173 pub fn row_count(&self) -> usize {
174 self.surrogates.len()
175 }
176
177 /// Decode the `RowKind` for the given row index.
178 ///

Callers 5

extract_cell_bytesFunction · 0.45
slice_sparseFunction · 0.45
group_by_dimFunction · 0.45
rechunk_sparseFunction · 0.45
decode_sparse_rowsFunction · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected