VeloGraphX
High-performance dynamic graph analytics in C++20
Loading...
Searching...
No Matches
velographx::PartitionFile Class Reference

#include <partition_file.hpp>

Static Public Member Functions

static void write (const std::filesystem::path &path, std::uint64_t partition_id, const std::vector< std::uint8_t > &payload)
 
static std::vector< std::uint8_t > read (const std::filesystem::path &path, std::uint64_t expected_partition_id)
 
static std::vector< std::uint8_t > read_mmap_or_fallback (const std::filesystem::path &path, std::uint64_t expected_partition_id, bool *used_mmap=nullptr)
 

Detailed Description

Definition at line 28 of file partition_file.hpp.

Member Function Documentation

◆ read()

static std::vector< std::uint8_t > velographx::PartitionFile::read ( const std::filesystem::path &  path,
std::uint64_t  expected_partition_id 
)
inlinestatic

Definition at line 46 of file partition_file.hpp.

Referenced by read_mmap_or_fallback().

◆ read_mmap_or_fallback()

static std::vector< std::uint8_t > velographx::PartitionFile::read_mmap_or_fallback ( const std::filesystem::path &  path,
std::uint64_t  expected_partition_id,
bool *  used_mmap = nullptr 
)
inlinestatic

◆ write()

static void velographx::PartitionFile::write ( const std::filesystem::path &  path,
std::uint64_t  partition_id,
const std::vector< std::uint8_t > &  payload 
)
inlinestatic

The documentation for this class was generated from the following file: