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

Function Record_GetGraphEntity

src/execution_plan/record.c:232–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232GraphEntity *Record_GetGraphEntity
233(
234 const Record r,
235 uint idx
236) {
237 Entry e = r->entries[idx];
238 switch(e.type) {
239 case REC_TYPE_NODE:
240 return (GraphEntity *)Record_GetNode(r, idx);
241 case REC_TYPE_EDGE:
242 return (GraphEntity *)Record_GetEdge(r, idx);
243 default:
244 ErrorCtx_RaiseRuntimeException("encountered unexpected type when trying to retrieve graph entity");
245 }
246 return NULL;
247}
248
249void Record_Add
250(

Callers 1

EvalEntityUpdatesFunction · 0.85

Calls 3

Record_GetNodeFunction · 0.85
Record_GetEdgeFunction · 0.85

Tested by

no test coverage detected