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

Method row_kind

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

Decode the `RowKind` for the given row index. Returns [`RowKind::Live`] when `row_kinds` is empty (forward-compat with pre-v4 data still in memory during migration) or when the row index is out of range.

(&self, row: usize)

Source from the content-addressed store, hash-verified

180 /// with pre-v4 data still in memory during migration) or when the row
181 /// index is out of range.
182 pub fn row_kind(&self, row: usize) -> ArrayResult<RowKind> {
183 match self.row_kinds.get(row) {
184 None => Ok(RowKind::Live),
185 Some(&b) => RowKind::from_u8(b),
186 }
187 }
188}
189
190/// All row-level data passed to [`SparseTileBuilder::push_row`].

Callers 10

apply_surrogate_filterFunction · 0.80
filter_by_surrogatesFunction · 0.80
union_tilesFunction · 0.80
absorb_sparseMethod · 0.80
extract_cell_bytesFunction · 0.80
slice_sparseFunction · 0.80
group_by_dimFunction · 0.80
rechunk_sparseFunction · 0.80
decode_sparse_rowsFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected