6 #ifndef TURI_SGRAPH_SGRAPH_SYNCHRONIZE_INTERFACE_HPP 7 #define TURI_SGRAPH_SGRAPH_SYNCHRONIZE_INTERFACE_HPP 9 #include<core/storage/sgraph_data/sgraph_types.hpp> 24 namespace sgraph_compute {
49 std::vector<std::pair<size_t, sgraph_vertex_data>>
vertices;
118 virtual void load_vertex_partition(
size_t partition_id, std::vector<sgraph_vertex_data>& all_vertices) = 0;
124 virtual vertex_partition_exchange get_vertex_partition_exchange(
size_t partition_id,
const std::unordered_set<size_t>& vertex_ids,
const std::vector<size_t>&
field_ids) = 0;
The serialization input archive object which, provided with a reference to an istream, will read from the istream, providing deserialization capabilities.
std::vector< std::pair< size_t, sgraph_vertex_data > > vertices
The serialization output archive object which, provided with a reference to an ostream, will write to the ostream, providing serialization capabilities.
std::vector< size_t > field_ids
A subset of field ids the vertex data contain.
size_t partition_id
id of the partition that vertices belong to.