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

Function _process_yield

src/procedures/proc_list_indexes.c:31–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29} IndexesContext;
30
31static void _process_yield
32(
33 IndexesContext *ctx,
34 const char **yield
35) {
36 ctx->yield_type = NULL;
37 ctx->yield_info = NULL;
38 ctx->yield_label = NULL;
39 ctx->yield_status = NULL;
40 ctx->yield_language = NULL;
41 ctx->yield_stopwords = NULL;
42 ctx->yield_properties = NULL;
43 ctx->yield_entity_type = NULL;
44
45 int idx = 0;
46 for(uint i = 0; i < array_len(yield); i++) {
47 if(strcasecmp("type", yield[i]) == 0) {
48 ctx->yield_type = ctx->out + idx;
49 idx++;
50 continue;
51 }
52
53 if(strcasecmp("label", yield[i]) == 0) {
54 ctx->yield_label = ctx->out + idx;
55 idx++;
56 continue;
57 }
58
59 if(strcasecmp("properties", yield[i]) == 0) {
60 ctx->yield_properties = ctx->out + idx;
61 idx++;
62 continue;
63 }
64
65 if(strcasecmp("language", yield[i]) == 0) {
66 ctx->yield_language = ctx->out + idx;
67 idx++;
68 continue;
69 }
70
71 if(strcasecmp("stopwords", yield[i]) == 0) {
72 ctx->yield_stopwords = ctx->out + idx;
73 idx++;
74 continue;
75 }
76
77 if(strcasecmp("entitytype", yield[i]) == 0) {
78 ctx->yield_entity_type = ctx->out + idx;
79 idx++;
80 continue;
81 }
82
83 if(strcasecmp("status", yield[i]) == 0) {
84 ctx->yield_status = ctx->out + idx;
85 idx++;
86 continue;
87 }
88

Callers 1

Proc_IndexesInvokeFunction · 0.70

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected