pub struct CompactFilesResult {
pub output_files: Vec<String>,
pub job_info: Option<OwnedCompactionJobInfo>,
}Expand description
What a DBCommon::compact_files call produced.
Fields§
§output_files: Vec<String>The SST files the compaction wrote, as RocksDB names them.
Empty when the compaction had nothing to write, for instance when every input key was deleted.
job_info: Option<OwnedCompactionJobInfo>Statistics and file lists for the compaction that just ran.
None when CompactionOptions::set_allow_trivial_move is enabled.
RocksDB can then satisfy the request by moving files between levels
instead of rewriting them, and that path returns success without
reporting anything about the work it did. Nothing distinguishes it from
the rewriting path afterwards, so the statistics are not collected at all
rather than sometimes being made up.
Trait Implementations§
Auto Trait Implementations§
impl !Sync for CompactFilesResult
impl Freeze for CompactFilesResult
impl RefUnwindSafe for CompactFilesResult
impl Send for CompactFilesResult
impl Unpin for CompactFilesResult
impl UnsafeUnpin for CompactFilesResult
impl UnwindSafe for CompactFilesResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more