Go to the documentation of this file.
16 #ifndef GRAPHSCOPE_FRAGMENT_MUTABLE_PROPERTY_FRAGMENT_H_
17 #define GRAPHSCOPE_FRAGMENT_MUTABLE_PROPERTY_FRAGMENT_H_
32 #include "grape/io/local_io_adaptor.h"
33 #include "grape/serialization/out_archive.h"
45 grape::OutArchive& arc,
Allocator& alloc);
51 void Open(
const std::string& work_dir,
int memory_level);
55 void Warmup(
int thread_num);
57 void Dump(
const std::string& work_dir, uint32_t version);
126 #endif // GRAPHSCOPE_FRAGMENT_MUTABLE_PROPERTY_FRAGMENT_H_
void loadSchema(const std::string &filename)
Definition: mutable_property_fragment.cc:47
Schema schema_
Definition: mutable_property_fragment.h:115
std::shared_ptr< CsrEdgeIterBase > get_outgoing_edges_mut(label_t label, vid_t u, label_t neighbor_label, label_t edge_label)
Definition: mutable_property_fragment.cc:455
std::vector< Table > vertex_data_
Definition: mutable_property_fragment.h:119
std::vector< CsrBase * > ie_
Definition: mutable_property_fragment.h:117
vid_t add_vertex(label_t label, const Any &id)
Definition: mutable_property_fragment.cc:426
uint32_t timestamp_t
Definition: types.h:30
Definition: csr_base.h:61
const Schema & schema() const
Definition: mutable_property_fragment.cc:389
uint32_t vid_t
Definition: types.h:31
void Clear()
Definition: mutable_property_fragment.cc:54
size_t edge_label_num_
Definition: mutable_property_fragment.h:121
Definition: adj_list.h:23
std::vector< DualCsrBase * > dual_csr_list_
Definition: mutable_property_fragment.h:118
vid_t vertex_num(label_t vertex_label) const
Definition: mutable_property_fragment.cc:402
Any get_oid(label_t label, vid_t lid) const
Definition: mutable_property_fragment.cc:422
Definition: allocators.h:29
Definition: mutable_property_fragment.h:37
CsrConstEdgeIterBase * get_outgoing_edges_raw(label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
Definition: mutable_property_fragment.cc:444
Schema & mutable_schema()
Definition: mutable_property_fragment.cc:391
CsrConstEdgeIterBase * get_incoming_edges_raw(label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
Definition: mutable_property_fragment.cc:449
void DumpSchema(const std::string &filename)
Definition: mutable_property_fragment.cc:70
CsrBase * get_ie_csr(label_t label, label_t neighbor_label, label_t edge_label)
Definition: mutable_property_fragment.cc:484
Definition: csr_base.h:27
void IngestEdge(label_t src_label, vid_t src_lid, label_t dst_label, vid_t dst_lid, label_t edge_label, timestamp_t ts, grape::OutArchive &arc, Allocator &alloc)
Definition: mutable_property_fragment.cc:371
MutablePropertyFragment()
Definition: mutable_property_fragment.cc:24
void Dump(const std::string &work_dir, uint32_t version)
Definition: mutable_property_fragment.cc:299
void Open(const std::string &work_dir, int memory_level)
Definition: mutable_property_fragment.cc:116
size_t vertex_label_num_
Definition: mutable_property_fragment.h:121
std::shared_ptr< CsrEdgeIterBase > get_incoming_edges_mut(label_t label, vid_t u, label_t neighbor_label, label_t edge_label)
Definition: mutable_property_fragment.cc:462
void UpdateEdge(label_t src_label, vid_t src_lid, label_t dst_label, vid_t dst_lid, label_t edge_label, timestamp_t ts, const Any &arc, Allocator &alloc)
Definition: mutable_property_fragment.cc:381
void Compact(uint32_t version)
Definition: mutable_property_fragment.cc:271
std::vector< CsrBase * > oe_
Definition: mutable_property_fragment.h:117
size_t edge_num(label_t src_label, label_t edge_label, label_t dst_label) const
Definition: mutable_property_fragment.cc:406
CsrBase * get_oe_csr(label_t label, label_t neighbor_label, label_t edge_label)
Definition: mutable_property_fragment.cc:468
bool get_lid(label_t label, const Any &oid, vid_t &lid) const
Definition: mutable_property_fragment.cc:417
void Warmup(int thread_num)
Definition: mutable_property_fragment.cc:358
std::shared_ptr< CsrConstEdgeIterBase > get_outgoing_edges(label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
Definition: mutable_property_fragment.cc:431
Table & get_vertex_table(label_t vertex_label)
Definition: mutable_property_fragment.cc:393
std::vector< IndexerType > lf_indexers_
Definition: mutable_property_fragment.h:116
uint8_t label_t
Definition: types.h:32
~MutablePropertyFragment()
Definition: mutable_property_fragment.cc:26
std::shared_ptr< CsrConstEdgeIterBase > get_incoming_edges(label_t label, vid_t u, label_t neighbor_label, label_t edge_label) const
Definition: mutable_property_fragment.cc:438