Trait engine_traits::compact::CompactExt[][src]

pub trait CompactExt {
    type CompactedEvent: CompactedEvent;
    fn auto_compactions_is_disabled(&self) -> Result<bool>;
fn compact_range(
        &self,
        cf: &str,
        start_key: Option<&[u8]>,
        end_key: Option<&[u8]>,
        exclusive_manual: bool,
        max_subcompactions: u32
    ) -> Result<()>;
fn compact_files_in_range(
        &self,
        start: Option<&[u8]>,
        end: Option<&[u8]>,
        output_level: Option<i32>
    ) -> Result<()>;
fn compact_files_in_range_cf(
        &self,
        cf: &str,
        start: Option<&[u8]>,
        end: Option<&[u8]>,
        output_level: Option<i32>
    ) -> Result<()>;
fn compact_files_cf(
        &self,
        cf: &str,
        files: Vec<String>,
        output_level: Option<i32>,
        max_subcompactions: u32,
        exclude_l0: bool
    ) -> Result<()>; }

Associated Types

type CompactedEvent: CompactedEvent[src]

Loading content...

Required methods

fn auto_compactions_is_disabled(&self) -> Result<bool>[src]

Checks whether any column family sets disable_auto_compactions to True or not.

fn compact_range(
    &self,
    cf: &str,
    start_key: Option<&[u8]>,
    end_key: Option<&[u8]>,
    exclusive_manual: bool,
    max_subcompactions: u32
) -> Result<()>
[src]

Compacts the column families in the specified range by manual or not.

fn compact_files_in_range(
    &self,
    start: Option<&[u8]>,
    end: Option<&[u8]>,
    output_level: Option<i32>
) -> Result<()>
[src]

Compacts files in the range and above the output level. Compacts all files if the range is not specified. Compacts all files to the bottommost level if the output level is not specified.

fn compact_files_in_range_cf(
    &self,
    cf: &str,
    start: Option<&[u8]>,
    end: Option<&[u8]>,
    output_level: Option<i32>
) -> Result<()>
[src]

Compacts files in the range and above the output level of the given column family. Compacts all files to the bottommost level if the output level is not specified.

fn compact_files_cf(
    &self,
    cf: &str,
    files: Vec<String>,
    output_level: Option<i32>,
    max_subcompactions: u32,
    exclude_l0: bool
) -> Result<()>
[src]

Loading content...

Implementors

Loading content...