Trait tikv::storage::txn::store::Store [−][src]
Associated Types
Loading content...Required methods
fn get(&self, key: &Key, statistics: &mut Statistics) -> Result<Option<Value>>
[src]
Fetch the provided key.
fn incremental_get(&mut self, key: &Key) -> Result<Option<Value>>
[src]
Re-use last cursor to incrementally (if possible) fetch the provided key.
fn incremental_get_take_statistics(&mut self) -> Statistics
[src]
Take the statistics. Currently only available for incremental_get
.
fn incremental_get_met_newer_ts_data(&self) -> NewerTsCheckState
[src]
Whether there was data > ts during previous incremental gets.
fn batch_get(
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Value>>>>
[src]
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Value>>>>
Fetch the provided set of keys.
fn scanner(
&self,
desc: bool,
key_only: bool,
check_has_newer_ts_data: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<Self::Scanner>
[src]
&self,
desc: bool,
key_only: bool,
check_has_newer_ts_data: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<Self::Scanner>
Retrieve a scanner over the bounds.
Implementors
impl Store for FixtureStore
[src]
type Scanner = FixtureStoreScanner
fn get(
&self,
key: &Key,
_statistics: &mut Statistics
) -> Result<Option<Vec<u8>>>
[src]
&self,
key: &Key,
_statistics: &mut Statistics
) -> Result<Option<Vec<u8>>>
fn incremental_get(&mut self, key: &Key) -> Result<Option<Vec<u8>>>
[src]
fn incremental_get_take_statistics(&mut self) -> Statistics
[src]
fn incremental_get_met_newer_ts_data(&self) -> NewerTsCheckState
[src]
fn batch_get(
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Vec<u8>>>>>
[src]
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Vec<u8>>>>>
fn scanner(
&self,
desc: bool,
key_only: bool,
_: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<FixtureStoreScanner>
[src]
&self,
desc: bool,
key_only: bool,
_: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<FixtureStoreScanner>
impl<S: Snapshot> Store for SnapshotStore<S>
[src]
type Scanner = MvccScanner<S>
fn get(&self, key: &Key, statistics: &mut Statistics) -> Result<Option<Value>>
[src]
fn incremental_get(&mut self, key: &Key) -> Result<Option<Value>>
[src]
fn incremental_get_take_statistics(&mut self) -> Statistics
[src]
fn incremental_get_met_newer_ts_data(&self) -> NewerTsCheckState
[src]
fn batch_get(
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Value>>>>
[src]
&self,
keys: &[Key],
statistics: &mut Statistics
) -> Result<Vec<Result<Option<Value>>>>
fn scanner(
&self,
desc: bool,
key_only: bool,
check_has_newer_ts_data: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<MvccScanner<S>>
[src]
&self,
desc: bool,
key_only: bool,
check_has_newer_ts_data: bool,
lower_bound: Option<Key>,
upper_bound: Option<Key>
) -> Result<MvccScanner<S>>