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

Function _CreateGroup

src/execution_plan/ops/op_aggregate.c:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99static Group *_CreateGroup
100(
101 OpAggregate *op,
102 SIValue *keys
103) {
104 // create a new group, clone group keys
105 SIValue *group_keys = _build_group_key(keys, op->key_count);
106
107 // get a fresh copy of aggregation functions
108 AR_ExpNode **agg_exps = _build_aggregate_exps(op);
109
110 return Group_New(group_keys, op->key_count, agg_exps, op->aggregate_count);
111}
112
113static XXH64_hash_t _ComputeGroupKey
114(

Callers 1

_GetGroupFunction · 0.85

Calls 3

_build_group_keyFunction · 0.85
_build_aggregate_expsFunction · 0.85
Group_NewFunction · 0.85

Tested by

no test coverage detected