Module graph_file

Module graph_file 

Source
Expand description

Modularized graph file operations

This directory contains the split modules from the original graph_file.rs to maintain the 300 LOC limit while preserving all functionality.

§Module Organization

  • buffers.rs: Adaptive read/write buffer management
  • validation.rs: File validation and corruption detection
  • encoding.rs: Safe header encoding/decoding utilities
  • debug.rs: Debug instrumentation and logging
  • file_ops.rs: Core file I/O operations
  • header.rs: Header encoding/decoding and persistent header operations (future)
  • transaction.rs: Transaction lifecycle and commit management (future)
  • io_backend.rs: I/O routing and backend selection (future)
  • mmap_ops.rs: Memory mapping operations and management (future)

Re-exports§

pub use buffers::ReadBuffer;
pub use buffers::WriteBuffer;
pub use debug::DebugInstrumentation;
pub use encoding::decode_persistent_header;
pub use encoding::encode_persistent_header;
pub use encoding::get_slice_safe;
pub use file_lifecycle::FileLifecycleManager;
pub use file_management::FileManager;
pub use file_ops::FileOperations;
pub use file_ops::IOMode;
pub use graph_file_advanced::DebugInfo;
pub use graph_file_advanced::FileHealthStatus;
pub use graph_file_advanced::OptimizationReport;
pub use graph_file_coordinator::GraphFileCoordinator;
pub use graph_file_coordinator::TransactionCoordinatorStatistics;
pub use header::ClusterUtilization;
pub use header::HeaderManager;
pub use header::HeaderStatistics;
pub use io_backend::IOBackendManager;
pub use io_backend::IOBackendStatistics;
pub use io_operations::IOOperationsManager;
pub use memory_mapping::MemoryMappingManager;
pub use memory_resource_manager::AccessPatternHint;
pub use memory_resource_manager::MemoryIOMode;
pub use memory_resource_manager::MemoryManagementStatistics;
pub use memory_resource_manager::MemoryResourceManager;
pub use memory_resource_manager::MemoryUtils;
pub use mmap_ops::MMapConfig;
pub use mmap_ops::MMapManager;
pub use mmap_ops::MMapStatistics;
pub use node_edge_access::NodeEdgeAccessManager;
pub use transaction::TransactionManager;
pub use transaction::TransactionStatistics;
pub use transaction_auditor::TransactionAuditor;
pub use transaction_auditor::TransactionAuditorStatistics;
pub use validation::GraphFileValidator;

Modules§

buffers
Adaptive buffer management for I/O optimization
debug
Debug instrumentation and logging utilities for GraphFile
encoding
Header encoding and decoding utilities for persistent header operations
file_lifecycle
File lifecycle operations for GraphFile
file_management
File management and lifecycle operations for GraphFile
file_ops
Core file operations for GraphFile
graph_file_accessors
GraphFile node and edge access operations
graph_file_advanced
Advanced GraphFile features
graph_file_coordinator
Graph file coordinator module
graph_file_core
Core GraphFile API operations
graph_file_io
GraphFile I/O operations
header
Header management and persistent header operations
io_backend
I/O backend routing and management for GraphFile
io_operations
I/O operations and data transfer for GraphFile
memory_mapping
Memory mapping operations and management for GraphFile
memory_resource_manager
Memory resource manager for GraphFile
mmap_ops
Memory mapping operations and management for GraphFile
node_edge_access
Node and edge record access operations for GraphFile
transaction
Transaction lifecycle and commit management for GraphFile
transaction_auditor
Transaction auditor and node modification tracking module
validation
File validation and corruption detection utilities

Structs§

GraphFile
Graph file wrapper that manages file handle and header operations

Constants§

DEFAULT_NODE_DATA_START
RESERVED_NODE_REGION_BYTES