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

Function GraphContext_GetAttributeString

src/graph/graphcontext.c:501–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501const char *GraphContext_GetAttributeString
502(
503 GraphContext *gc,
504 Attribute_ID id
505) {
506 ASSERT(gc != NULL);
507 ASSERT(id >= 0 && id < array_len(gc->string_mapping));
508
509 pthread_rwlock_rdlock(&gc->_attribute_rwlock);
510 const char *name = gc->string_mapping[id];
511 pthread_rwlock_unlock(&gc->_attribute_rwlock);
512 return name;
513}
514
515Attribute_ID GraphContext_GetAttributeID
516(

Callers 8

_Constraint_CreateFunction · 0.85
_RdbLoadConstaintFunction · 0.85
GraphEntity_KeysFunction · 0.85
GraphEntity_PropertiesFunction · 0.85
_JsonEncoder_PropertiesFunction · 0.85
Proc_PropKeysStepFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected