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

Method local_for_surrogate

nodedb-vector/src/collection/lifecycle_insert_ops.rs:73–75  ·  view source on GitHub ↗

Resolve a surrogate back to its global vector ID, if bound.

(&self, surrogate: Surrogate)

Source from the content-addressed store, hash-verified

71
72 /// Resolve a surrogate back to its global vector ID, if bound.
73 pub fn local_for_surrogate(&self, surrogate: Surrogate) -> Option<u32> {
74 self.surrogate_to_local.get(&surrogate).copied()
75 }
76
77 /// Soft-delete a vector by global ID.
78 pub fn delete(&mut self, id: u32) -> bool {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected