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

Function reduceScans

src/execution_plan/optimizations/reduce_scans.c:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void reduceScans(ExecutionPlan *plan) {
60 // Collect all SCAN operations within the execution plan.
61 OpBase **scans = ExecutionPlan_CollectOpsMatchingTypes(plan->root, SCAN_OPS, SCAN_OP_COUNT);
62 uint scan_count = array_len(scans);
63 for(uint i = 0; i < scan_count; i++) {
64 _reduceScans(plan, scans[i]);
65 }
66
67 array_free(scans);
68}
69

Callers 1

optimizePlanFunction · 0.85

Calls 4

array_lenFunction · 0.85
_reduceScansFunction · 0.85
array_freeFunction · 0.85

Tested by

no test coverage detected