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

Function AllNodeScanConsume

src/execution_plan/ops/op_all_node_scan.c:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static Record AllNodeScanConsume(OpBase *opBase) {
80 AllNodeScan *op = (AllNodeScan *)opBase;
81
82 Node n = GE_NEW_NODE();
83 n.attributes = DataBlockIterator_Next(op->iter, &n.id);
84 if(n.attributes == NULL) return NULL;
85
86 Record r = OpBase_CreateRecord((OpBase *)op);
87 Record_AddNode(r, op->nodeRecIdx, n);
88
89 return r;
90}
91
92static OpResult AllNodeScanReset(OpBase *op) {
93 AllNodeScan *allNodeScan = (AllNodeScan *)op;

Callers

nothing calls this directly

Calls 3

DataBlockIterator_NextFunction · 0.85
OpBase_CreateRecordFunction · 0.85
Record_AddNodeFunction · 0.85

Tested by

no test coverage detected