Crate tikv_kv[−][src]
There are multiple Engine implementations, RaftKv
is used by the Server. The BTreeEngine and
RocksEngine are used for testing only.
Modules
| btree_engine | |
| cursor | |
| metrics | |
| mock_engine | |
| perf_context | |
| raftstore_impls | |
| rocksdb_engine | |
| stats | |
| tests |
Structs
| BTreeEngine | The BTreeEngine(based on |
| BTreeEngineIterator | |
| BTreeEngineSnapshot | |
| CbContext | |
| CfStatistics | Statistics collects the ops taken when fetching data. |
| Cursor | |
| CursorBuilder | A handy utility to build a snapshot cursor according to various configurations. |
| Error | |
| ExpectedWrite | |
| FlowStatistics | |
| MockEngineBuilder | |
| PerfStatisticsDelta | Store statistics we need. Data comes from RocksDB’s |
| PerfStatisticsInstant | Store statistics we need. Data comes from RocksDB’s |
| RocksEngine | The RocksEngine is based on |
| RocksSnapshot | |
| SnapContext | |
| Statistics | |
| StatisticsSummary | |
| WriteData |
Enums
| ErrorInner | |
| Modify | |
| ScanMode |
Constants
| DEFAULT_TIMEOUT_SECS | |
| SEEK_BOUND | |
| TLS_ENGINE_ANY | |
| TTL_TOMBSTONE |
Traits
| Engine | Engine defines the common behaviour for a storage engine type. |
| FlowStatsReporter | |
| Iterator | |
| Snapshot | A Snapshot is a consistent view of the underlying engine at a given point in time. |
Functions
| destroy_tls_engine⚠ | Destroy the thread local engine. |
| drop_snapshot_callback | |
| set_tls_engine | Set the thread local engine. |
| snapshot | Get a snapshot of |
| with_tls_engine⚠ | Execute the closure on the thread local engine. |
| write_modifies | Write modifications into a |
Type Definitions
| Callback | |
| ExtCallback | |
| Result |