MCPcopy Create free account
hub / github.com/alibaba/GraphScope / flags2Ptree

Function flags2Ptree

analytical_engine/core/java/graphx_runner.h:89–109  ·  view source on GitHub ↗

put all flags in a json str

Source from the content-addressed store, hash-verified

87
88// put all flags in a json str
89boost::property_tree::ptree flags2Ptree() {
90 boost::property_tree::ptree pt;
91 if (FLAGS_user_lib_path.empty()) {
92 LOG(ERROR) << "user jni lib not set";
93 }
94 pt.put("user_lib_path", FLAGS_user_lib_path);
95 // Different from other type of apps, we need to specify
96 // vd and ed type in app_class for generic class creations
97 pt.put("app_class", build_generic_class(FLAGS_app_class, FLAGS_vd_class,
98 FLAGS_ed_class, FLAGS_msg_class));
99 pt.put("graphx_context_class",
100 build_generic_class(FLAGS_context_class, FLAGS_vd_class,
101 FLAGS_ed_class, FLAGS_msg_class));
102 pt.put("msg_class", FLAGS_msg_class);
103 pt.put("vd_class", FLAGS_vd_class);
104 pt.put("ed_class", FLAGS_ed_class);
105 pt.put("max_iterations", FLAGS_max_iterations);
106 pt.put("serial_path", FLAGS_serial_path);
107 pt.put("num_part", FLAGS_num_part);
108 return pt;
109}
110
111std::pair<vineyard::ObjectID, int> splitAndGet(grape::CommSpec& comm_spec,
112 const std::string& ids) {

Callers 1

RunGraphXFunction · 0.85

Calls 3

build_generic_classFunction · 0.85
emptyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected