pub struct BlobFileGarbageInfo<'a> { /* private fields */ }Expand description
Garbage a compaction produced in an existing blob file, borrowed from the job info that listed it.
A blob becomes garbage when the SST entry that referenced it is dropped or rewritten, so these counts are what blob garbage collection later reclaims.
Implementations§
Source§impl<'a> BlobFileGarbageInfo<'a>
impl<'a> BlobFileGarbageInfo<'a>
Sourcepub fn blob_file_path(&self) -> &'a [u8] ⓘ
pub fn blob_file_path(&self) -> &'a [u8] ⓘ
Path of the blob file, borrowed as raw bytes.
Sourcepub fn blob_file_number(&self) -> u64
pub fn blob_file_number(&self) -> u64
File number of the blob file.
Sourcepub fn garbage_blob_count(&self) -> u64
pub fn garbage_blob_count(&self) -> u64
Number of blobs in the file this compaction turned into garbage.
Sourcepub fn garbage_blob_bytes(&self) -> u64
pub fn garbage_blob_bytes(&self) -> u64
Total size of the blobs this compaction turned into garbage, in bytes.
Auto Trait Implementations§
impl<'a> !Send for BlobFileGarbageInfo<'a>
impl<'a> !Sync for BlobFileGarbageInfo<'a>
impl<'a> Freeze for BlobFileGarbageInfo<'a>
impl<'a> RefUnwindSafe for BlobFileGarbageInfo<'a>
impl<'a> Unpin for BlobFileGarbageInfo<'a>
impl<'a> UnsafeUnpin for BlobFileGarbageInfo<'a>
impl<'a> UnwindSafe for BlobFileGarbageInfo<'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