Struct test_sst_importer::TestEngine [−][src]
Fields
db: Arc<DB>
Implementations
impl RocksEngine
[src]
pub fn from_db(db: Arc<DB>) -> RocksEngine
[src]
pub fn from_ref(db: &Arc<DB>) -> &RocksEngine
[src]
pub fn as_inner(&self) -> &Arc<DB>
[src]
pub fn get_sync_db(&self) -> Arc<DB>
[src]
pub fn exists(path: &str) -> bool
[src]
pub fn set_shared_block_cache(&mut self, enable: bool)
[src]
Trait Implementations
impl CFNamesExt for RocksEngine
[src]
impl CFOptionsExt for RocksEngine
[src]
type ColumnFamilyOptions = RocksColumnFamilyOptions
pub fn get_options_cf(
&self,
cf: &str
) -> Result<<RocksEngine as CFOptionsExt>::ColumnFamilyOptions, Error>
[src]
&self,
cf: &str
) -> Result<<RocksEngine as CFOptionsExt>::ColumnFamilyOptions, Error>
pub fn set_options_cf(
&self,
cf: &str,
options: &[(&str, &str)]
) -> Result<(), Error>
[src]
&self,
cf: &str,
options: &[(&str, &str)]
) -> Result<(), Error>
impl Clone for RocksEngine
[src]
pub fn clone(&self) -> RocksEngine
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CompactExt for RocksEngine
[src]
type CompactedEvent = RocksCompactedEvent
pub fn auto_compactions_is_disabled(&self) -> Result<bool, Error>
[src]
pub fn compact_range(
&self,
cf: &str,
start_key: Option<&[u8]>,
end_key: Option<&[u8]>,
exclusive_manual: bool,
max_subcompactions: u32
) -> Result<(), Error>
[src]
&self,
cf: &str,
start_key: Option<&[u8]>,
end_key: Option<&[u8]>,
exclusive_manual: bool,
max_subcompactions: u32
) -> Result<(), Error>
pub fn compact_files_in_range(
&self,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
[src]
&self,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
pub fn compact_files_in_range_cf(
&self,
cf: &str,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
[src]
&self,
cf: &str,
start: Option<&[u8]>,
end: Option<&[u8]>,
output_level: Option<i32>
) -> Result<(), Error>
pub fn compact_files_cf(
&self,
cf: &str,
files: Vec<String, Global>,
output_level: Option<i32>,
max_subcompactions: u32,
exclude_l0: bool
) -> Result<(), Error>
[src]
&self,
cf: &str,
files: Vec<String, Global>,
output_level: Option<i32>,
max_subcompactions: u32,
exclude_l0: bool
) -> Result<(), Error>
impl DBOptionsExt for RocksEngine
[src]
type DBOptions = RocksDBOptions
pub fn get_db_options(&self) -> <RocksEngine as DBOptionsExt>::DBOptions
[src]
pub fn set_db_options(&self, options: &[(&str, &str)]) -> Result<(), Error>
[src]
impl Debug for RocksEngine
[src]
impl ImportExt for RocksEngine
[src]
type IngestExternalFileOptions = RocksIngestExternalFileOptions
pub fn ingest_external_file_cf(
&self,
cf: &str,
opts: &<RocksEngine as ImportExt>::IngestExternalFileOptions,
files: &[&str]
) -> Result<(), Error>
[src]
&self,
cf: &str,
opts: &<RocksEngine as ImportExt>::IngestExternalFileOptions,
files: &[&str]
) -> Result<(), Error>
pub fn reset_global_seq<P>(&self, cf: &str, path: P) -> Result<(), Error> where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
impl Iterable for RocksEngine
[src]
type Iterator = RocksEngineIterator
pub fn iterator_opt(
&self,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
[src]
&self,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
pub fn iterator_cf_opt(
&self,
cf: &str,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
[src]
&self,
cf: &str,
opts: IterOptions
) -> Result<<RocksEngine as Iterable>::Iterator, Error>
pub fn iterator(&self) -> Result<Self::Iterator, Error>
[src]
pub fn iterator_cf(&self, cf: &str) -> Result<Self::Iterator, Error>
[src]
pub fn scan<F>(
&self,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
[src]
&self,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
pub fn scan_cf<F>(
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
[src]
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8],
fill_cache: bool,
f: F
) -> Result<(), Error> where
F: FnMut(&[u8], &[u8]) -> Result<bool, Error>,
pub fn seek(
&self,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
[src]
&self,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
pub fn seek_cf(
&self,
cf: &str,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
[src]
&self,
cf: &str,
key: &[u8]
) -> Result<Option<(Vec<u8, Global>, Vec<u8, Global>)>, Error>
impl KvEngine for RocksEngine
[src]
type Snapshot = RocksSnapshot
A consistent read-only snapshot of the database
pub fn snapshot(&self) -> RocksSnapshot
[src]
pub fn sync(&self) -> Result<(), Error>
[src]
pub fn flush_metrics(&self, instance: &str)
[src]
pub fn reset_statistics(&self)
[src]
pub fn bad_downcast<T>(&self) -> &T where
T: 'static,
[src]
T: 'static,
impl MiscExt for RocksEngine
[src]
pub fn flush(&self, sync: bool) -> Result<(), Error>
[src]
pub fn flush_cf(&self, cf: &str, sync: bool) -> Result<(), Error>
[src]
pub fn delete_ranges_cf(
&self,
cf: &str,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
[src]
&self,
cf: &str,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
pub fn get_approximate_memtable_stats_cf(
&self,
cf: &str,
range: &Range<'_>
) -> Result<(u64, u64), Error>
[src]
&self,
cf: &str,
range: &Range<'_>
) -> Result<(u64, u64), Error>
pub fn ingest_maybe_slowdown_writes(&self, cf: &str) -> Result<bool, Error>
[src]
pub fn get_engine_used_size(&self) -> Result<u64, Error>
[src]
pub fn roughly_cleanup_ranges(
&self,
ranges: &[(Vec<u8, Global>, Vec<u8, Global>)]
) -> Result<(), Error>
[src]
&self,
ranges: &[(Vec<u8, Global>, Vec<u8, Global>)]
) -> Result<(), Error>
pub fn path(&self) -> &str
[src]
pub fn sync_wal(&self) -> Result<(), Error>
[src]
pub fn exists(path: &str) -> bool
[src]
pub fn dump_stats(&self) -> Result<String, Error>
[src]
pub fn get_latest_sequence_number(&self) -> u64
[src]
pub fn get_oldest_snapshot_sequence_number(&self) -> Option<u64>
[src]
pub fn get_total_sst_files_size_cf(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn get_range_entries_and_versions(
&self,
cf: &str,
start: &[u8],
end: &[u8]
) -> Result<Option<(u64, u64)>, Error>
[src]
&self,
cf: &str,
start: &[u8],
end: &[u8]
) -> Result<Option<(u64, u64)>, Error>
pub fn get_cf_num_files_at_level(
&self,
cf: &str,
level: usize
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str,
level: usize
) -> Result<Option<u64>, Error>
pub fn get_cf_num_immutable_mem_table(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn get_cf_compaction_pending_bytes(
&self,
cf: &str
) -> Result<Option<u64>, Error>
[src]
&self,
cf: &str
) -> Result<Option<u64>, Error>
pub fn is_stalled_or_stopped(&self) -> bool
[src]
pub fn delete_all_in_range(
&self,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
[src]
&self,
strategy: DeleteStrategy,
ranges: &[Range<'_>]
) -> Result<(), Error>
impl MvccPropertiesExt for RocksEngine
[src]
pub fn get_mvcc_properties_cf(
&self,
cf: &str,
safe_point: TimeStamp,
start_key: &[u8],
end_key: &[u8]
) -> Option<MvccProperties>
[src]
&self,
cf: &str,
safe_point: TimeStamp,
start_key: &[u8],
end_key: &[u8]
) -> Option<MvccProperties>
impl Peekable for RocksEngine
[src]
type DBVector = RocksDBVector
The byte-vector type through which the database returns read values.
pub fn get_value_opt(
&self,
opts: &ReadOptions,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
[src]
&self,
opts: &ReadOptions,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
pub fn get_value_cf_opt(
&self,
opts: &ReadOptions,
cf: &str,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
[src]
&self,
opts: &ReadOptions,
cf: &str,
key: &[u8]
) -> Result<Option<RocksDBVector>, Error>
pub fn get_value(&self, key: &[u8]) -> Result<Option<Self::DBVector>, Error>
[src]
pub fn get_value_cf(
&self,
cf: &str,
key: &[u8]
) -> Result<Option<Self::DBVector>, Error>
[src]
&self,
cf: &str,
key: &[u8]
) -> Result<Option<Self::DBVector>, Error>
pub fn get_msg<M>(&self, key: &[u8]) -> Result<Option<M>, Error> where
M: Message + Default,
[src]
M: Message + Default,
pub fn get_msg_cf<M>(&self, cf: &str, key: &[u8]) -> Result<Option<M>, Error> where
M: Message + Default,
[src]
M: Message + Default,
impl PerfContextExt for RocksEngine
[src]
type PerfContext = RocksPerfContext
pub fn get_perf_context(
&self,
level: PerfLevel,
kind: PerfContextKind
) -> <RocksEngine as PerfContextExt>::PerfContext
[src]
&self,
level: PerfLevel,
kind: PerfContextKind
) -> <RocksEngine as PerfContextExt>::PerfContext
impl RaftEngine for RocksEngine
[src]
type LogBatch = RocksWriteBatch
pub fn log_batch(
&self,
capacity: usize
) -> <RocksEngine as RaftEngine>::LogBatch
[src]
&self,
capacity: usize
) -> <RocksEngine as RaftEngine>::LogBatch
pub fn sync(&self) -> Result<(), Error>
[src]
pub fn get_raft_state(
&self,
raft_group_id: u64
) -> Result<Option<RaftLocalState>, Error>
[src]
&self,
raft_group_id: u64
) -> Result<Option<RaftLocalState>, Error>
pub fn get_entry(
&self,
raft_group_id: u64,
index: u64
) -> Result<Option<Entry>, Error>
[src]
&self,
raft_group_id: u64,
index: u64
) -> Result<Option<Entry>, Error>
pub fn fetch_entries_to(
&self,
region_id: u64,
low: u64,
high: u64,
max_size: Option<usize>,
buf: &mut Vec<Entry, Global>
) -> Result<usize, Error>
[src]
&self,
region_id: u64,
low: u64,
high: u64,
max_size: Option<usize>,
buf: &mut Vec<Entry, Global>
) -> Result<usize, Error>
pub fn consume(
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool
) -> Result<usize, Error>
[src]
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool
) -> Result<usize, Error>
pub fn consume_and_shrink(
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool,
max_capacity: usize,
shrink_to: usize
) -> Result<usize, Error>
[src]
&self,
batch: &mut <RocksEngine as RaftEngine>::LogBatch,
sync_log: bool,
max_capacity: usize,
shrink_to: usize
) -> Result<usize, Error>
pub fn clean(
&self,
raft_group_id: u64,
state: &RaftLocalState,
batch: &mut <RocksEngine as RaftEngine>::LogBatch
) -> Result<(), Error>
[src]
&self,
raft_group_id: u64,
state: &RaftLocalState,
batch: &mut <RocksEngine as RaftEngine>::LogBatch
) -> Result<(), Error>
pub fn append(
&self,
raft_group_id: u64,
entries: Vec<Entry, Global>
) -> Result<usize, Error>
[src]
&self,
raft_group_id: u64,
entries: Vec<Entry, Global>
) -> Result<usize, Error>
pub fn put_raft_state(
&self,
raft_group_id: u64,
state: &RaftLocalState
) -> Result<(), Error>
[src]
&self,
raft_group_id: u64,
state: &RaftLocalState
) -> Result<(), Error>
pub fn gc(&self, raft_group_id: u64, from: u64, to: u64) -> Result<usize, Error>
[src]
pub fn purge_expired_files(&self) -> Result<Vec<u64, Global>, Error>
[src]
pub fn has_builtin_entry_cache(&self) -> bool
[src]
pub fn flush_metrics(&self, instance: &str)
[src]
pub fn reset_statistics(&self)
[src]
pub fn dump_stats(&self) -> Result<String, Error>
[src]
pub fn gc_entry_cache(&self, _raft_group_id: u64, _to: u64)
[src]
pub fn flush_stats(&self) -> Option<CacheStats>
[src]
pub fn stop(&self)
[src]
impl RangePropertiesExt for RocksEngine
[src]
pub fn get_range_approximate_keys(
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_keys_cf(
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_size(
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_size_cf(
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
large_threshold: u64
) -> Result<u64, Error>
pub fn get_range_approximate_split_keys(
&self,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
[src]
&self,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
pub fn get_range_approximate_split_keys_cf(
&self,
cfname: &str,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
[src]
&self,
cfname: &str,
range: Range<'_>,
key_count: usize
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
impl SstExt for RocksEngine
[src]
type SstReader = RocksSstReader
type SstWriter = RocksSstWriter
type SstWriterBuilder = RocksSstWriterBuilder
impl SyncMutable for RocksEngine
[src]
pub fn put(&self, key: &[u8], value: &[u8]) -> Result<(), Error>
[src]
pub fn put_cf(&self, cf: &str, key: &[u8], value: &[u8]) -> Result<(), Error>
[src]
pub fn delete(&self, key: &[u8]) -> Result<(), Error>
[src]
pub fn delete_cf(&self, cf: &str, key: &[u8]) -> Result<(), Error>
[src]
pub fn delete_range(
&self,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
[src]
&self,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
pub fn delete_range_cf(
&self,
cf: &str,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
[src]
&self,
cf: &str,
begin_key: &[u8],
end_key: &[u8]
) -> Result<(), Error>
pub fn put_msg<M>(&self, key: &[u8], m: &M) -> Result<(), Error> where
M: Message,
[src]
M: Message,
pub fn put_msg_cf<M>(&self, cf: &str, key: &[u8], m: &M) -> Result<(), Error> where
M: Message,
[src]
M: Message,
impl TablePropertiesExt for RocksEngine
[src]
type TablePropertiesCollection = RocksTablePropertiesCollection
type TablePropertiesCollectionIter = RocksTablePropertiesCollectionIter
type TablePropertiesKey = RocksTablePropertiesKey
type TableProperties = RocksTableProperties
type UserCollectedProperties = RocksUserCollectedProperties
pub fn get_properties_of_tables_in_range(
&self,
cf: &str,
ranges: &[Range<'_>]
) -> Result<<RocksEngine as TablePropertiesExt>::TablePropertiesCollection, Error>
[src]
&self,
cf: &str,
ranges: &[Range<'_>]
) -> Result<<RocksEngine as TablePropertiesExt>::TablePropertiesCollection, Error>
pub fn get_range_properties_cf(
&self,
cfname: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::TablePropertiesCollection, Error>
[src]
&self,
cfname: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Self::TablePropertiesCollection, Error>
impl TtlPropertiesExt for RocksEngine
[src]
pub fn get_range_ttl_properties_cf(
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Vec<(String, TtlProperties), Global>, Error>
[src]
&self,
cf: &str,
start_key: &[u8],
end_key: &[u8]
) -> Result<Vec<(String, TtlProperties), Global>, Error>
impl WriteBatchExt for RocksEngine
[src]
type WriteBatch = RocksWriteBatch
type WriteBatchVec = RocksWriteBatchVec
WriteBatchVec
is used for multi_batch_write
of RocksEngine and other Engine could also
implement another kind of WriteBatch according to their needs. Read more
pub const WRITE_BATCH_MAX_KEYS: usize
[src]
pub fn support_write_batch_vec(&self) -> bool
[src]
pub fn write_batch(&self) -> <RocksEngine as WriteBatchExt>::WriteBatch
[src]
pub fn write_batch_with_cap(
&self,
cap: usize
) -> <RocksEngine as WriteBatchExt>::WriteBatch
[src]
&self,
cap: usize
) -> <RocksEngine as WriteBatchExt>::WriteBatch
Auto Trait Implementations
impl RefUnwindSafe for RocksEngine
impl Send for RocksEngine
impl Sync for RocksEngine
impl Unpin for RocksEngine
impl UnwindSafe for RocksEngine
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,