[][src]Enum rocks::listener::CompactionReason

#[repr(C)]pub enum CompactionReason {
    Unknown,
    LevelL0FilesNum,
    LevelMaxLevelSize,
    UniversalSizeAmplification,
    UniversalSizeRatio,
    UniversalSortedRunNum,
    FIFOMaxSize,
    ManualCompaction,
    FilesMarkedForCompaction,
}

Reason for a compaction job, used in CompactionJobInfo

Variants

Unknown
LevelL0FilesNum

[Level] number of L0 files > level0_file_num_compaction_trigger

LevelMaxLevelSize

[Level] total size of level > MaxBytesForLevel()

UniversalSizeAmplification

[Universal] Compacting for size amplification

UniversalSizeRatio

[Universal] Compacting for size ratio

UniversalSortedRunNum

[Universal] number of sorted runs > level0_file_num_compaction_trigger

FIFOMaxSize

[FIFO] total size > max_table_files_size

ManualCompaction

Manual compaction

FilesMarkedForCompaction

DB::SuggestCompactRange() marked files for compaction

Trait Implementations

impl Clone for CompactionReason[src]

impl Copy for CompactionReason[src]

impl Debug for CompactionReason[src]

impl Eq for CompactionReason[src]

impl Hash for CompactionReason[src]

impl PartialEq<CompactionReason> for CompactionReason[src]

impl StructuralEq for CompactionReason[src]

impl StructuralPartialEq for CompactionReason[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> 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.