Method
gets
(&self, list: Vec<VectorId>)
Source from the content-addressed store, hash-verified
| 160 | /// gets documents |
| 161 | #[inline] |
| 162 | pub fn gets(&self, list: Vec<VectorId>) -> Vec<(VectorId, Vector)> { |
| 163 | let mut result = Vec::with_capacity(list.len()); |
| 164 | |
| 165 | list.iter().for_each(|vid| { |
| 166 | if let Some(r) = self.vcache.get(vid) { |
| 167 | result.push((r.key().clone(), r.value().clone())); |
| 168 | } |
| 169 | }); |
| 170 | |
| 171 | result |
| 172 | } |
| 173 | |
| 174 | /// lookup by vector_id |
| 175 | #[inline] |
Callers
nothing calls this directly
Tested by
no test coverage detected