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

Function _aggregateRecord

src/execution_plan/ops/op_aggregate.c:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static void _aggregateRecord
174(
175 OpAggregate *op,
176 Record r
177) {
178 // get group
179 Group *g = _GetGroup(op, r);
180 ASSERT(g != NULL);
181
182 // aggregate group exps
183 for(uint i = 0; i < op->aggregate_count; i++) {
184 AR_ExpNode *exp = g->agg[i];
185 AR_EXP_Aggregate(exp, r);
186 }
187
188 OpBase_DeleteRecord(r);
189}
190
191// returns a record populated with group data
192static Record _handoff

Callers 1

AggregateConsumeFunction · 0.85

Calls 3

_GetGroupFunction · 0.85
AR_EXP_AggregateFunction · 0.85
OpBase_DeleteRecordFunction · 0.85

Tested by

no test coverage detected