Trait tikv::storage::txn::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.
Implementors
impl Scanner for FixtureStoreScanner
[src]
fn next(&mut self) -> Result<Option<(Key, Vec<u8>)>>
[src]
fn met_newer_ts_data(&self) -> NewerTsCheckState
[src]
fn take_statistics(&mut self) -> Statistics
[src]
impl<S: Snapshot> Scanner for Scanner<S>
[src]
fn next(&mut self) -> TxnResult<Option<(Key, Value)>>
[src]
fn take_statistics(&mut self) -> Statistics
[src]
Take out and reset the statistics collected so far.
fn met_newer_ts_data(&self) -> NewerTsCheckState
[src]
Returns whether data with newer ts is found. The result is meaningful only when
check_has_newer_ts_data
is set to true.