pub struct ColumnFamilyLogNumbers<'a> { /* private fields */ }Expand description
Which log each column family still needs replayed, handed to the filter once before any records are.
The borrow lasts for the callback only. The C API layer flattens RocksDB’s
two std::maps into arrays on its own stack and frees them as soon as the
callback returns, so nothing here can be kept.
Implementations§
Source§impl<'a> ColumnFamilyLogNumbers<'a>
impl<'a> ColumnFamilyLogNumbers<'a>
Sourcepub fn log_numbers(&self) -> impl Iterator<Item = (u32, u64)> + '_
pub fn log_numbers(&self) -> impl Iterator<Item = (u32, u64)> + '_
Every column family id paired with the log number it was last flushed at.
A record from a log older than a family’s number is already in an SST for that family, which is how a filter decides whether a record still matters.
Sourcepub fn log_number(&self, cf_id: u32) -> Option<u64>
pub fn log_number(&self, cf_id: u32) -> Option<u64>
The log number for one column family id.
Auto Trait Implementations§
impl<'a> !Send for ColumnFamilyLogNumbers<'a>
impl<'a> !Sync for ColumnFamilyLogNumbers<'a>
impl<'a> Freeze for ColumnFamilyLogNumbers<'a>
impl<'a> RefUnwindSafe for ColumnFamilyLogNumbers<'a>
impl<'a> Unpin for ColumnFamilyLogNumbers<'a>
impl<'a> UnsafeUnpin for ColumnFamilyLogNumbers<'a>
impl<'a> UnwindSafe for ColumnFamilyLogNumbers<'a>
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