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

Method contains

nodedb/src/engine/kv/sorted_index/tree.rs:138–140  ·  view source on GitHub ↗

Check if a primary key exists in the tree.

(&self, primary_key: &[u8])

Source from the content-addressed store, hash-verified

136
137 /// Check if a primary key exists in the tree.
138 pub fn contains(&self, primary_key: &[u8]) -> bool {
139 self.key_to_sort.contains_key(primary_key)
140 }
141
142 /// Get the sort key for a primary key, if it exists.
143 pub fn get_sort_key(&self, primary_key: &[u8]) -> Option<&[u8]> {

Callers 15

is_coveringMethod · 0.45
phrase_searchMethod · 0.45
versioned_doc_keyFunction · 0.45
scan_tiles_atMethod · 0.45
replaceMethod · 0.45
apply_retentionFunction · 0.45
rewrite_segmentFunction · 0.45
planFunction · 0.45
bound_node_namesMethod · 0.45
bound_edge_namesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected