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

Method live_count

nodedb-vector/src/collection/lifecycle.rs:272–281  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

270 }
271
272 pub fn live_count(&self) -> usize {
273 let mut total = self.growing.live_count();
274 for seg in &self.sealed {
275 total += seg.index.live_count();
276 }
277 for seg in &self.building {
278 total += seg.flat.live_count();
279 }
280 total
281 }
282
283 pub fn is_empty(&self) -> bool {
284 self.live_count() == 0

Callers 3

statsMethod · 0.45
is_emptyMethod · 0.45
build_sq8_for_indexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected