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

Function OpBase_Aware

src/execution_plan/ops/op.c:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool OpBase_Aware
142(
143 OpBase *op,
144 const char *alias,
145 int *idx
146) {
147 rax *mapping = ExecutionPlan_GetMappings(op->plan);
148 void *rec_idx = raxFind(mapping, (unsigned char *)alias, strlen(alias));
149 if(idx) *idx = (intptr_t)rec_idx;
150 return (rec_idx != raxNotFound);
151}
152
153// collects writing operations under `op` into `write_ops`, and resets the
154// reading ops (including `op` itself)

Callers 6

NewCreateOpFunction · 0.85
NewCondVarLenTraverseOpFunction · 0.85
SortInitFunction · 0.85
NewMergeCreateOpFunction · 0.85
NewExpandIntoOpFunction · 0.85
NewCondTraverseOpFunction · 0.85

Calls 1

Tested by

no test coverage detected