|
Basic Solution File System - BSFS
|
Represents a single node in the B-tree stored on disk. More...
#include <btree_bsfs.h>
Public Attributes | |
| uint8_t | is_leaf |
| uint32_t | num_entries |
| void * | entries |
| uint32_t * | children |
Represents a single node in the B-tree stored on disk.
This structure holds metadata and content for a B-tree node. It supports both leaf and internal nodes, with a flexible entry format configured via the B-tree handle (btree_handle_t).
The number of entries and children is determined by the minimum degree t:
| uint32_t* btree_node_t::children |
Pointer to the array of child block numbers (only used if the node is internal). The array can hold up to 2t block addresses.
| void* btree_node_t::entries |
Pointer to the array of entries (opaque key/data pairs). The format and size of each entry are defined in the B-tree handle.
| uint8_t btree_node_t::is_leaf |
Flag indicating whether the node is a leaf (1) or internal node (0).
| uint32_t btree_node_t::num_entries |
Number of valid entries currently stored in the node.