pub struct CompactionManager { /* private fields */ }Expand description
Compaction manager for scheduling and coordinating compaction operations
Implementations§
Source§impl CompactionManager
impl CompactionManager
pub fn new(collection_path: &Path) -> Self
Sourcepub fn compact_with_config(
&self,
config: CompactionConfig,
) -> Result<CompactionStats>
pub fn compact_with_config( &self, config: CompactionConfig, ) -> Result<CompactionStats>
Run compaction with custom configuration
Sourcepub fn status(&self) -> Result<CompactionStatus>
pub fn status(&self) -> Result<CompactionStatus>
Quick compaction status check
Auto Trait Implementations§
impl Freeze for CompactionManager
impl RefUnwindSafe for CompactionManager
impl Send for CompactionManager
impl Sync for CompactionManager
impl Unpin for CompactionManager
impl UnwindSafe for CompactionManager
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