Struct engine_rocks::raw::DBOptions[][src]

pub struct DBOptions {
    pub inner: *mut Options,
    env: Option<Arc<Env>>,
    pub titan_inner: *mut DBTitanDBOptions,
}

Fields

inner: *mut Optionsenv: Option<Arc<Env>>titan_inner: *mut DBTitanDBOptions

Implementations

impl DBOptions[src]

pub fn new() -> DBOptions[src]

pub fn env(&self) -> Option<Arc<Env>>[src]

pub unsafe fn from_raw(inner: *mut Options) -> DBOptions[src]

pub fn set_titandb_options(&mut self, opts: &TitanDBOptions)[src]

pub fn increase_parallelism(&mut self, parallelism: i32)[src]

pub fn add_event_listener<L>(&mut self, l: L) where
    L: EventListener
[src]

pub fn create_if_missing(&mut self, create_if_missing: bool)[src]

pub fn create_missing_column_families(
    &mut self,
    create_missing_column_families: bool
)
[src]

pub fn set_env(&mut self, env: Arc<Env>)[src]

pub fn set_max_open_files(&mut self, nfiles: i32)[src]

pub fn set_max_total_wal_size(&mut self, size: u64)[src]

pub fn set_use_fsync(&mut self, useit: bool)[src]

pub fn set_bytes_per_sync(&mut self, nbytes: u64)[src]

pub fn set_table_cache_num_shard_bits(&mut self, nbits: i32)[src]

pub fn set_writable_file_max_buffer_size(&mut self, nbytes: i32)[src]

pub fn set_use_direct_reads(&mut self, v: bool)[src]

pub fn set_use_direct_io_for_flush_and_compaction(&mut self, v: bool)[src]

pub fn set_max_manifest_file_size(&mut self, size: u64)[src]

pub fn set_max_background_jobs(&mut self, n: i32)[src]

pub fn get_max_background_jobs(&self) -> i32[src]

pub fn set_max_background_compactions(&mut self, n: i32)[src]

pub fn get_max_background_compactions(&self) -> i32[src]

pub fn set_max_background_flushes(&mut self, n: i32)[src]

pub fn get_max_background_flushes(&self) -> i32[src]

pub fn set_max_subcompactions(&mut self, n: u32)[src]

pub fn set_wal_bytes_per_sync(&mut self, n: u64)[src]

pub fn set_wal_recovery_mode(&mut self, mode: DBRecoveryMode)[src]

pub fn set_delayed_write_rate(&mut self, rate: u64)[src]

pub fn enable_statistics(&mut self, v: bool)[src]

pub fn get_statistics_ticker_count(
    &self,
    ticker_type: DBStatisticsTickerType
) -> u64
[src]

pub fn get_and_reset_statistics_ticker_count(
    &self,
    ticker_type: DBStatisticsTickerType
) -> u64
[src]

pub fn get_statistics_histogram(
    &self,
    hist_type: DBStatisticsHistogramType
) -> Option<HistogramData>
[src]

pub fn get_statistics_histogram_string(
    &self,
    hist_type: DBStatisticsHistogramType
) -> Option<String>
[src]

pub fn get_statistics(&self) -> Option<String>[src]

pub fn reset_statistics(&self)[src]

pub fn set_stats_dump_period_sec(&mut self, period: usize)[src]

pub fn set_db_log_dir(&mut self, path: &str)[src]

pub fn set_wal_dir(&mut self, path: &str)[src]

pub fn set_wal_ttl_seconds(&mut self, ttl: u64)[src]

pub fn set_wal_size_limit_mb(&mut self, limit: u64)[src]

pub fn set_max_log_file_size(&mut self, size: u64)[src]

pub fn set_log_file_time_to_roll(&mut self, ttl: u64)[src]

pub fn set_info_log_level(&mut self, level: DBInfoLogLevel)[src]

pub fn set_keep_log_file_num(&mut self, num: u64)[src]

pub fn set_recycle_log_file_num(&mut self, num: u64)[src]

pub fn set_compaction_readahead_size(&mut self, size: u64)[src]

pub fn set_ratelimiter(&mut self, rate_bytes_per_sec: i64)[src]

pub fn set_ratelimiter_with_auto_tuned(
    &mut self,
    rate_bytes_per_sec: i64,
    refill_period_us: i64,
    mode: DBRateLimiterMode,
    auto_tuned: bool
)
[src]

pub fn set_writeampbasedratelimiter_with_auto_tuned(
    &mut self,
    rate_bytes_per_sec: i64,
    refill_period_us: i64,
    mode: DBRateLimiterMode,
    auto_tuned: bool
)
[src]

pub fn set_rate_bytes_per_sec(
    &mut self,
    rate_bytes_per_sec: i64
) -> Result<(), String>
[src]

pub fn get_rate_bytes_per_sec(&self) -> Option<i64>[src]

pub fn set_auto_tuned(&mut self, auto_tuned: bool) -> Result<(), String>[src]

pub fn get_auto_tuned(&self) -> Option<bool>[src]

pub fn create_info_log(&self, path: &str) -> Result<(), String>[src]

pub fn set_info_log<L>(&self, l: L) where
    L: Logger
[src]

pub fn enable_pipelined_write(&self, v: bool)[src]

pub fn enable_multi_batch_write(&self, v: bool)[src]

pub fn is_enable_multi_batch_write(&self) -> bool[src]

pub fn enable_unordered_write(&self, v: bool)[src]

pub fn allow_concurrent_memtable_write(&self, v: bool)[src]

pub fn manual_wal_flush(&self, v: bool)[src]

pub fn set_db_paths<T>(&self, val: &[(T, u64)]) where
    T: AsRef<Path>, 
[src]

the second parameter is a slice which contains tuples (path, target_size).

pub fn set_atomic_flush(&self, enable: bool)[src]

pub fn get_db_paths_num(&self) -> usize[src]

pub fn get_db_path(&self, idx: usize) -> Option<String>[src]

pub fn get_path_target_size(&self, idx: usize) -> u64[src]

pub fn set_paranoid_checks(&self, enable: bool)[src]

Set paranoid checks. The default value is true. We can set it to false to skip manifest checks.

pub fn set_doubly_skiplist(&self)[src]

pub fn get_memtable_name(&self) -> Option<&str>[src]

Trait Implementations

impl Clone for DBOptions[src]

impl Default for DBOptions[src]

impl Drop for DBOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for DBOptions

impl !Send for DBOptions

impl !Sync for DBOptions

impl Unpin for DBOptions

impl UnwindSafe for DBOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]