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

Function AR_KEYS

src/arithmetic/map_funcs/map_funcs.c:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45SIValue AR_KEYS(SIValue *argv, int argc, void *private_data) {
46 ASSERT(argc == 1);
47 switch(SI_TYPE(argv[0])) {
48 case T_NULL:
49 return SI_NullVal();
50 case T_NODE:
51 case T_EDGE:
52 return GraphEntity_Keys(argv[0].ptrval);
53 case T_MAP:
54 return Map_Keys(argv[0]);
55 default:
56 ASSERT(false);
57 }
58 return SI_NullVal();
59}
60
61SIValue AR_PROPERTIES(SIValue *argv, int argc, void *private_data) {
62 ASSERT(argc == 1);

Callers

nothing calls this directly

Calls 3

SI_NullValFunction · 0.85
GraphEntity_KeysFunction · 0.85
Map_KeysFunction · 0.85

Tested by

no test coverage detected