[−][src]Struct rocks::advanced_options::CompactionOptionsFIFO
Methods
impl CompactionOptionsFIFO
[src]
pub fn max_table_files_size(self, val: u64) -> Self
[src]
once the total sum of table files reaches this, we will delete the oldest table file
Default: 1GB
pub fn ttl(self, val: u64) -> Self
[src]
Drop files older than TTL. TTL based deletion will take precedence over
size based deletion if ttl > 0.
delete if sst_file_creation_time < (current_time - ttl)
unit: seconds. Ex: 1 day = 1 * 24 * 60 * 60
Default: 0 (disabled)
pub fn allow_compaction(self, val: bool) -> Self
[src]
If true, try to do compaction to compact smaller files into larger ones. Minimum files to compact follows options.level0_file_num_compaction_trigger and compaction won't trigger if average compact bytes per del file is larger than options.write_buffer_size. This is to protect large files from being compacted again.
Default: false
Trait Implementations
impl Default for CompactionOptionsFIFO
[src]
impl Drop for CompactionOptionsFIFO
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompactionOptionsFIFO
impl !Send for CompactionOptionsFIFO
impl !Sync for CompactionOptionsFIFO
impl Unpin for CompactionOptionsFIFO
impl UnwindSafe for CompactionOptionsFIFO
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,