MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _process_yield

Function _process_yield

src/procedures/proc_fulltext_query.c:33–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31} QueryNodeContext;
32
33static void _process_yield
34(
35 QueryNodeContext *ctx,
36 const char **yield
37) {
38 ctx->yield_node = NULL;
39 ctx->yield_score = NULL;
40
41 int idx = 0;
42 for(uint i = 0; i < array_len(yield); i++) {
43 if(strcasecmp("node", yield[i]) == 0) {
44 ctx->yield_node = ctx->output + idx;
45 idx++;
46 continue;
47 }
48
49 if(strcasecmp("score", yield[i]) == 0) {
50 ctx->yield_score = ctx->output + idx;
51 idx++;
52 continue;
53 }
54 }
55}
56
57ProcedureResult Proc_FulltextQueryNodeInvoke
58(

Callers 1

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected