pub struct HeaderManager;Expand description
Header management utilities for GraphFile
Implementations§
Source§impl HeaderManager
impl HeaderManager
Sourcepub fn initialize_v2_header(
header: &mut PersistentHeaderV2,
node_count: u64,
default_node_data_start: u64,
reserved_node_region_bytes: u64,
) -> NativeResult<()>
pub fn initialize_v2_header( header: &mut PersistentHeaderV2, node_count: u64, default_node_data_start: u64, reserved_node_region_bytes: u64, ) -> NativeResult<()>
Initialize V2 header with proper cluster offset configuration
Sets up the header with magic bytes, version, and calculates proper offsets for nodes, edges, and clusters to prevent corruption.
Sourcepub fn validate_header_invariants(
header: &PersistentHeaderV2,
) -> NativeResult<()>
pub fn validate_header_invariants( header: &PersistentHeaderV2, ) -> NativeResult<()>
Validate header invariants and constraints
Ensures the header configuration maintains all critical invariants for safe file operations.
Sourcepub fn get_header_statistics(
header: &PersistentHeaderV2,
reserved_node_region_bytes: u64,
) -> HeaderStatistics
pub fn get_header_statistics( header: &PersistentHeaderV2, reserved_node_region_bytes: u64, ) -> HeaderStatistics
Get header statistics for debugging
Sourcepub fn get_node_statistics(
header: &PersistentHeaderV2,
) -> NativeResult<ClusterUtilization>
pub fn get_node_statistics( header: &PersistentHeaderV2, ) -> NativeResult<ClusterUtilization>
Get node statistics from persistent header
Sourcepub fn get_edge_statistics(
header: &PersistentHeaderV2,
) -> NativeResult<ClusterUtilization>
pub fn get_edge_statistics( header: &PersistentHeaderV2, ) -> NativeResult<ClusterUtilization>
Get edge statistics from persistent header
Auto Trait Implementations§
impl Freeze for HeaderManager
impl RefUnwindSafe for HeaderManager
impl Send for HeaderManager
impl Sync for HeaderManager
impl Unpin for HeaderManager
impl UnwindSafe for HeaderManager
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more