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

Function AllNodeScanInit

src/execution_plan/ops/op_all_node_scan.c:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static OpResult AllNodeScanInit(OpBase *opBase) {
38 AllNodeScan *op = (AllNodeScan *)opBase;
39 if(opBase->childCount > 0) OpBase_UpdateConsume(opBase, AllNodeScanConsumeFromChild);
40 else op->iter = Graph_ScanNodes(QueryCtx_GetGraph());
41 return OP_OK;
42}
43
44static Record AllNodeScanConsumeFromChild(OpBase *opBase) {
45 AllNodeScan *op = (AllNodeScan *)opBase;

Callers

nothing calls this directly

Calls 3

OpBase_UpdateConsumeFunction · 0.85
Graph_ScanNodesFunction · 0.85
QueryCtx_GetGraphFunction · 0.85

Tested by

no test coverage detected