pub struct PurgeManager<P>where
P: PipeLog,{ /* private fields */ }
Implementations§
Source§impl<P> PurgeManager<P>where
P: PipeLog,
impl<P> PurgeManager<P>where
P: PipeLog,
pub fn new( cfg: Arc<Config>, memtables: MemTables, pipe_log: Arc<P>, global_stats: Arc<GlobalStats>, listeners: Vec<Arc<dyn EventListener>>, ) -> PurgeManager<P>
pub fn purge_expired_files(&self) -> Result<Vec<u64>>
Sourcepub fn must_rewrite_append_queue(
&self,
watermark: Option<FileSeq>,
exit_after_step: Option<u64>,
)
pub fn must_rewrite_append_queue( &self, watermark: Option<FileSeq>, exit_after_step: Option<u64>, )
Rewrite append files with seqno no larger than watermark
. When it’s
None, rewrite the entire queue. Returns the number of purged files.
pub fn must_rewrite_rewrite_queue(&self)
pub fn must_purge_all_stale(&self)
Auto Trait Implementations§
impl<P> Freeze for PurgeManager<P>
impl<P> !RefUnwindSafe for PurgeManager<P>
impl<P> Send for PurgeManager<P>
impl<P> Sync for PurgeManager<P>
impl<P> Unpin for PurgeManager<P>
impl<P> !UnwindSafe for PurgeManager<P>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more