pub struct TableStats { /* private fields */ }
Expand description
Informational storage stats about a table
Implementations§
Source§impl TableStats
impl TableStats
Sourcepub fn tree_height(&self) -> u32
pub fn tree_height(&self) -> u32
Maximum traversal distance to reach the deepest (key, value) pair in the table
Sourcepub fn leaf_pages(&self) -> u64
pub fn leaf_pages(&self) -> u64
Number of leaf pages that store user data
Sourcepub fn branch_pages(&self) -> u64
pub fn branch_pages(&self) -> u64
Number of branch pages in the btree that store user data
Sourcepub fn stored_bytes(&self) -> u64
pub fn stored_bytes(&self) -> u64
Number of bytes consumed by keys and values that have been inserted. Does not include indexing overhead
Sourcepub fn metadata_bytes(&self) -> u64
pub fn metadata_bytes(&self) -> u64
Number of bytes consumed by keys in internal branch pages, plus other metadata
Sourcepub fn fragmented_bytes(&self) -> u64
pub fn fragmented_bytes(&self) -> u64
Number of bytes consumed by fragmentation, both in data pages and internal metadata tables
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableStats
impl RefUnwindSafe for TableStats
impl Send for TableStats
impl Sync for TableStats
impl Unpin for TableStats
impl UnwindSafe for TableStats
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes