MCPcopy Create free account
hub / github.com/cosdata/cosdata / lookup

Method lookup

src/models/common.rs:532–539  ·  view source on GitHub ↗
(&self, k: &K)

Source from the content-addressed store, hash-verified

530 }
531
532 pub fn lookup(&self, k: &K) -> Option<V>
533 where
534 V: Clone,
535 {
536 let index = self.hash_key(k);
537 let ht = self.hash_table_list[index].lock().unwrap();
538 ht.get(k).cloned()
539 }
540
541 pub fn mutate<F>(&self, k: K, f: F)
542 where

Callers 6

key_value_searchFunction · 0.45
get_latestMethod · 0.45
get_versionedMethod · 0.45
getMethod · 0.45
usv_searchMethod · 0.45
search_bm25Method · 0.45

Calls 2

hash_keyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected