MCPcopy Create free account
hub / github.com/alibaba/euler / InitQueryProxy

Function InitQueryProxy

tf_euler/utils/init_query_proxy.cc:20–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19extern "C" {
20 bool InitQueryProxy(const char* conf) {
21 euler::GraphConfig config;
22 auto vec = euler::Split(conf, ';');
23 if (vec.empty()) {
24 return false;
25 }
26 for (auto it = vec.begin(); it != vec.end(); ++it) {
27 auto key_value = euler::Split(*it, '=');
28 if (key_value.size() != 2 || key_value[0].empty() ||
29 key_value[1].empty()) {
30 return false;
31 }
32 config.Add(key_value[0], key_value[1]);
33 }
34 euler::QueryProxy::Init(config);
35 return true;
36 }
37}

Callers

nothing calls this directly

Calls 6

SplitFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected