MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_file_index_v2_batch

Method get_file_index_v2_batch

atomic-core/src/pristine/txn/write/tree.rs:207–221  ·  view source on GitHub ↗
(
        &self,
        keys: &[FileIndexV2Key],
    )

Source from the content-addressed store, hash-verified

205
206impl FileIndexV2TxnT for WriteTxn<'_> {
207 fn get_file_index_v2_batch(
208 &self,
209 keys: &[FileIndexV2Key],
210 ) -> PristineResult<Vec<Option<FileIndexV2Entry>>> {
211 let table = self.txn.open_table(FILE_INDEX_V2)?;
212 let mut rows = Vec::with_capacity(keys.len());
213 for key in keys {
214 let encoded = key.encode();
215 rows.push(match table.get(encoded.as_slice())? {
216 Some(value) => Some(decode_file_index_v2(value.value())?),
217 None => None,
218 });
219 }
220 Ok(rows)
221 }
222
223 fn iter_file_index_v2(
224 &self,

Callers

nothing calls this directly

Calls 7

decode_file_index_v2Function · 0.85
valueMethod · 0.80
getMethod · 0.65
lenMethod · 0.45
encodeMethod · 0.45
pushMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected