pub struct BtreeStats {
pub leaf_node_count: u64,
pub deleted_leaf_node_count: u64,
pub bottom_internal_node_count: u64,
pub internal_node_count: u64,
pub main_tree_max_depth: u32,
}Expand description
B-tree statistics for a single database.
Returned by Database::get_stats.
Implements BtreeStats with the most commonly used fields:
| Field | |
|---|---|
leaf_node_count | getLNCount() |
deleted_leaf_node_count | getDeletedLNCount() |
bottom_internal_node_count | getBottomInternalNodeCount() |
internal_node_count | getInternalNodeCount() |
main_tree_max_depth | getMainTreeMaxDepth() |
Fields§
§leaf_node_count: u64Total number of leaf-node (LN) records in the tree. Equivalent to the approximate record count for the database.
deleted_leaf_node_count: u64Number of known-deleted LN slots not yet compacted.
bottom_internal_node_count: u64Number of Bottom Internal Nodes (BINs — leaf-level inner nodes).
internal_node_count: u64Number of upper Internal Nodes (INs above BIN level).
main_tree_max_depth: u32Maximum depth of the main tree (root-to-BIN path length).
Implementations§
Source§impl BtreeStats
impl BtreeStats
Sourcepub fn get_leaf_node_count(&self) -> u64
pub fn get_leaf_node_count(&self) -> u64
Returns the total leaf-node record count (approximate).
Sourcepub fn get_deleted_leaf_node_count(&self) -> u64
pub fn get_deleted_leaf_node_count(&self) -> u64
Returns the count of known-deleted but not yet compacted slots.
Sourcepub fn get_bottom_internal_node_count(&self) -> u64
pub fn get_bottom_internal_node_count(&self) -> u64
Returns the number of Bottom Internal Nodes.
Sourcepub fn get_internal_node_count(&self) -> u64
pub fn get_internal_node_count(&self) -> u64
Returns the number of upper Internal Nodes.
Sourcepub fn get_main_tree_max_depth(&self) -> u32
pub fn get_main_tree_max_depth(&self) -> u32
Returns the maximum tree depth.
Trait Implementations§
Source§impl Clone for BtreeStats
impl Clone for BtreeStats
Source§fn clone(&self) -> BtreeStats
fn clone(&self) -> BtreeStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BtreeStats
impl Debug for BtreeStats
Source§impl Default for BtreeStats
impl Default for BtreeStats
Source§fn default() -> BtreeStats
fn default() -> BtreeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BtreeStats
impl RefUnwindSafe for BtreeStats
impl Send for BtreeStats
impl Sync for BtreeStats
impl Unpin for BtreeStats
impl UnsafeUnpin for BtreeStats
impl UnwindSafe for BtreeStats
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