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::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).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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