Method
get_file_index_v2_batch
(
&self,
keys: &[FileIndexV2Key],
)
Source from the content-addressed store, hash-verified
| 205 | |
| 206 | impl 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
Tested by
no test coverage detected