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

Function JoinReset

src/execution_plan/ops/op_join.c:96–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static OpResult JoinReset
97(
98 OpBase *opBase
99) {
100 OpJoin *op = (OpJoin *)opBase;
101 op->streamIdx = 0;
102 op->stream = op->op.children[op->streamIdx];
103
104 // map first stream resultset mapping
105 ResultSet *result_set = QueryCtx_GetResultSet();
106 if(result_set != NULL && op->update_column_map) {
107 OpBase *child = op->stream;
108 rax *mapping = ExecutionPlan_GetMappings(child->plan);
109 ResultSet_MapProjection(result_set, mapping);
110 }
111
112 return OP_OK;
113}
114
115bool JoinGetUpdateColumnMap
116(

Callers

nothing calls this directly

Calls 3

QueryCtx_GetResultSetFunction · 0.85
ResultSet_MapProjectionFunction · 0.85

Tested by

no test coverage detected