MCPcopy Create free account
hub / github.com/Tencent/embedx / NewGraphClient

Function NewGraphClient

src/graph/client/graph_client.cc:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::unique_ptr<GraphClient> NewGraphClient(const GraphConfig& config,
77 GraphClientEnum type) {
78 std::unique_ptr<GraphClient> graph_client;
79 switch (type) {
80 case GraphClientEnum::LOCAL:
81 graph_client.reset(new GraphClient(NewLocalGraphClientImpl(config)));
82 break;
83 case GraphClientEnum::DIST:
84 graph_client.reset(new GraphClient(NewDistGraphClientImpl(config)));
85 break;
86 default:
87 DXERROR("Need type: LOCAL(0) || DIST(1), got type: %d.", (int)type);
88 break;
89 }
90 return graph_client;
91}
92
93} // namespace embedx

Callers 9

InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
InitMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 2

NewLocalGraphClientImplFunction · 0.85
NewDistGraphClientImplFunction · 0.85

Tested by 3

SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68