Trait tikv::storage::Scanner [−][src]
Scanner
s allow retrieving items or batches from a scan result.
Commonly they are obtained as a result of a scanner
operation.
Required methods
fn next(&mut self) -> Result<Option<(Key, Value)>>
[src][−]
Get the next KvPair
if it exists.
fn met_newer_ts_data(&self) -> NewerTsCheckState
[src][−]
Whether there was data > ts during previous scans.
fn take_statistics(&mut self) -> Statistics
[src][−]
Take statistics.
Provided methods
fn scan(
&mut self,
limit: usize,
sample_step: usize
) -> Result<Vec<Result<KvPair>>>
[src][−]
&mut self,
limit: usize,
sample_step: usize
) -> Result<Vec<Result<KvPair>>>
Get the next KvPair
s up to limit
if they exist.
If sample_step
is greater than 0, skips sample_step - 1
number of keys after each returned key.