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

Function AR_EXP_CollectEntities

src/arithmetic/arithmetic_expression.c:732–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void AR_EXP_CollectEntities(AR_ExpNode *root, rax *aliases) {
733 if(AR_EXP_IsOperation(root)) {
734 for(int i = 0; i < root->op.child_count; i ++) {
735 AR_EXP_CollectEntities(root->op.children[i], aliases);
736 }
737 } else { // type == AR_EXP_OPERAND
738 if(root->operand.type == AR_EXP_VARIADIC) {
739 const char *entity = root->operand.variadic.entity_alias;
740 raxInsert(aliases, (unsigned char *)entity, strlen(entity), NULL, NULL);
741 }
742 }
743}
744
745void AR_EXP_CollectAttributes(AR_ExpNode *root, rax *attributes) {
746 if(AR_EXP_IsOperation(root)) {

Callers 4

_normalize_filterFunction · 0.85
_applicable_predicateFunction · 0.85
_relate_exp_to_streamFunction · 0.85

Calls 1

AR_EXP_IsOperationFunction · 0.85

Tested by

no test coverage detected