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

Method is_deleted

nodedb-vector/src/flat.rs:303–306  ·  view source on GitHub ↗

Whether the given local id has been tombstoned.

(&self, id: u32)

Source from the content-addressed store, hash-verified

301
302 /// Whether the given local id has been tombstoned.
303 pub fn is_deleted(&self, id: u32) -> bool {
304 let idx = id as usize;
305 idx < self.deleted.len() && self.deleted[idx]
306 }
307
308 /// Insert a vector that is already tombstoned (for checkpoint restore).
309 pub fn insert_tombstoned(&mut self, vector: Vec<f32>) -> u32 {

Callers 5

adaptive_searchFunction · 0.45
plain_columnar_purgeMethod · 0.45
start_hnsw_rebuildMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected