[][src]Struct rocks::options::CompactRangeOptions

pub struct CompactRangeOptions { /* fields omitted */ }

CompactRangeOptions is used by compact_range() call.

Implementations

impl CompactRangeOptions[src]

pub fn exclusive_manual_compaction(self, val: bool) -> Self[src]

If true, no other compaction will run at the same time as this manual compaction

pub fn change_level(self, val: bool) -> Self[src]

If true, compacted files will be moved to the minimum level capable of holding the data or given level (specified non-negative target_level).

pub fn target_level(self, val: i32) -> Self[src]

If change_level is true and target_level have non-negative value, compacted files will be moved to target_level.

pub fn target_path_id(self, val: u32) -> Self[src]

Compaction outputs will be placed in options.db_paths[target_path_id]. Behavior is undefined if target_path_id is out of range.

pub fn bottommost_level_compaction(self, val: BottommostLevelCompaction) -> Self[src]

By default level based compaction will only compact the bottommost level if there is a compaction filter

Trait Implementations

impl Default for CompactRangeOptions[src]

impl Drop for CompactRangeOptions[src]

impl Sync for CompactRangeOptions[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.