Trait tikv_kv::Engine [−][src]
Engine defines the common behaviour for a storage engine type.
Associated Types
Required methods
fn kv_engine(&self) -> Self::Local
[src][−]
Local storage engine.
fn snapshot_on_kv_engine(
&self,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::Snap>
[src]
&self,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::Snap>
fn modify_on_kv_engine(&self, modifies: Vec<Modify>) -> Result<()>
[src][−]
Write modifications into internal local engine directly.
fn async_snapshot(
&self,
ctx: SnapContext<'_>,
cb: Callback<Self::Snap>
) -> Result<()>
[src]
&self,
ctx: SnapContext<'_>,
cb: Callback<Self::Snap>
) -> Result<()>
fn async_write(
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<()>
) -> Result<()>
[src]
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<()>
) -> Result<()>
Provided methods
fn async_write_ext(
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<()>,
_proposed_cb: Option<ExtCallback>,
_committed_cb: Option<ExtCallback>
) -> Result<()>
[src][−]
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<()>,
_proposed_cb: Option<ExtCallback>,
_committed_cb: Option<ExtCallback>
) -> Result<()>
Writes data to the engine asynchronously with some extensions.
When the write request is proposed successfully, the proposed_cb
is invoked.
When the write request is finished, the write_cb
is invoked.
fn write(&self, ctx: &Context, batch: WriteData) -> Result<()>
[src]
fn release_snapshot(&self)
[src]
fn snapshot(&self, ctx: SnapContext<'_>) -> Result<Self::Snap>
[src]
fn put(&self, ctx: &Context, key: Key, value: Value) -> Result<()>
[src]
fn put_cf(
&self,
ctx: &Context,
cf: CfName,
key: Key,
value: Value
) -> Result<()>
[src]
&self,
ctx: &Context,
cf: CfName,
key: Key,
value: Value
) -> Result<()>
fn delete(&self, ctx: &Context, key: Key) -> Result<()>
[src]
fn delete_cf(&self, ctx: &Context, cf: CfName, key: Key) -> Result<()>
[src]
fn get_mvcc_properties_cf(
&self,
_: CfName,
_safe_point: TimeStamp,
_start: &[u8],
_end: &[u8]
) -> Option<MvccProperties>
[src]
&self,
_: CfName,
_safe_point: TimeStamp,
_start: &[u8],
_end: &[u8]
) -> Option<MvccProperties>