pub enum NodeType {
IN,
BIN,
BINDelta,
LN,
MapLN,
NameLN,
FileSummaryLN,
}Expand description
Identifies the kind of a tree node.
This enum represents the closed set of node types in the B-tree. Each type has specific semantics and behavior.
Variants§
IN
Upper Internal Node - non-leaf node in the B-tree.
BIN
Bottom Internal Node - leaf-level node containing references to LNs.
BINDelta
BIN Delta - a partial BIN containing only changed slots.
LN
Leaf Node - contains actual data records.
MapLN
MapLN - special LN that references a database metadata tree.
NameLN
NameLN - special LN that maps database names to database IDs.
FileSummaryLN
FileSummaryLN - special LN that tracks log file utilization.
Implementations§
Source§impl NodeType
impl NodeType
Sourcepub fn is_in(self) -> bool
pub fn is_in(self) -> bool
Returns true if this is any type of IN (internal node).
This includes IN, BIN, and BINDelta.
Sourcepub fn is_upper_in(self) -> bool
pub fn is_upper_in(self) -> bool
Returns true if this is an upper IN (non-leaf internal node).
Sourcepub fn is_bin_delta(self) -> bool
pub fn is_bin_delta(self) -> bool
Returns true if this is a BIN delta.
Trait Implementations§
impl Copy for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnsafeUnpin for NodeType
impl UnwindSafe for NodeType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.