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

Method len

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

Source from the content-addressed store, hash-verified

259 }
260
261 pub fn len(&self) -> usize {
262 let mut total = self.growing.len();
263 for seg in &self.sealed {
264 total += seg.index.len();
265 }
266 for seg in &self.building {
267 total += seg.flat.len();
268 }
269 total
270 }
271
272 pub fn live_count(&self) -> usize {
273 let mut total = self.growing.live_count();

Callers 15

compactMethod · 0.45
export_snapshotMethod · 0.45
statsMethod · 0.45
insert_multi_vectorMethod · 0.45
delete_innerMethod · 0.45
undeleteMethod · 0.45
needs_sealMethod · 0.45
sealMethod · 0.45
checkpoint_to_bytesMethod · 0.45
from_checkpointMethod · 0.45
build_sq8_for_indexMethod · 0.45
build_pq_for_indexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected