MCPcopy Create free account
hub / github.com/elastic/devfiler / range

Method range

src/storage/table.rs:210–220  ·  view source on GitHub ↗

Iterate over key-value pairs in the `[start, end)` range.

(&self, start: Self::Key, end: Self::Key)

Source from the content-addressed store, hash-verified

208
209 /// Iterate over key-value pairs in the `[start, end)` range.
210 fn range(&self, start: Self::Key, end: Self::Key) -> Iter<Self> {
211 let mut opts = rocksdb::ReadOptions::default();
212 opts.set_iterate_range(start.into_raw().as_ref()..end.into_raw().as_ref());
213 opts.set_async_io(true);
214 let mut raw = self.raw().raw_iterator_opt(opts);
215 raw.seek_to_first();
216 Iter {
217 raw,
218 _marker: PhantomData,
219 }
220 }
221}
222
223/// Defines what to optimize the table for.

Callers 1

time_rangeMethod · 0.80

Calls 1

into_rawMethod · 0.45

Tested by

no test coverage detected