MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / batch_get

Method batch_get

graphlite/src/storage/persistent/memory.rs:84–91  ·  view source on GitHub ↗
(&self, keys: &[&[u8]])

Source from the content-addressed store, hash-verified

82 }
83
84 fn batch_get(&self, keys: &[&[u8]]) -> StorageResult<Vec<Option<Vec<u8>>>> {
85 let data = self.data.read();
86 let mut results = Vec::with_capacity(keys.len());
87 for key in keys {
88 results.push(data.get(*key).cloned());
89 }
90 Ok(results)
91 }
92
93 fn batch_insert(&self, entries: &[(&[u8], &[u8])]) -> StorageResult<()> {
94 let mut data = self.data.write();

Callers

nothing calls this directly

Calls 2

lenMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected