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

Function Record_GetNode

src/execution_plan/record.c:165–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165Node *Record_GetNode
166(
167 const Record r,
168 uint idx
169) {
170 switch(r->entries[idx].type) {
171 case REC_TYPE_NODE:
172 return &(r->entries[idx].value.n);
173 case REC_TYPE_UNKNOWN:
174 return NULL;
175 case REC_TYPE_SCALAR:
176 // Null scalar values are expected here; otherwise fall through.
177 if(SIValue_IsNull(r->entries[idx].value.s)) return NULL;
178 default:
179 ErrorCtx_RaiseRuntimeException("encountered unexpected type in Record; expected Node");
180 return NULL;
181 }
182}
183
184Edge *Record_GetEdge
185(

Callers 12

Record_GetFunction · 0.85
Record_GetGraphEntityFunction · 0.85
_CreateEdgesFunction · 0.85
UpdateCurrentAwareIdsFunction · 0.85
_CreateEntitiesFunction · 0.85
_populate_filter_matrixFunction · 0.85
_handoffFunction · 0.85
ExpandIntoConsumeFunction · 0.85
_populate_filter_matrixFunction · 0.85
CondTraverseConsumeFunction · 0.85

Calls 2

SIValue_IsNullFunction · 0.85

Tested by

no test coverage detected