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

Function Map_Keys

src/datatypes/map.c:199–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199SIValue Map_Keys
200(
201 SIValue map
202) {
203 ASSERT(SI_TYPE(map) & T_MAP);
204
205 uint key_count = Map_KeyCount(map);
206 SIValue keys = SIArray_New(key_count);
207
208 for(uint i = 0; i < key_count; i++) {
209 Pair p = map.map[i];
210 SIArray_Append(&keys, p.key);
211 }
212
213 return keys;
214}
215
216int Map_Compare
217(

Callers 4

AR_KEYSFunction · 0.85
test_empty_mapFunction · 0.85
test_map_addFunction · 0.85
test_map_removeFunction · 0.85

Calls 3

Map_KeyCountFunction · 0.85
SIArray_NewFunction · 0.85
SIArray_AppendFunction · 0.85

Tested by 3

test_empty_mapFunction · 0.68
test_map_addFunction · 0.68
test_map_removeFunction · 0.68