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

Function HashTableCreate

src/util/dict.c:135–149  ·  view source on GitHub ↗

Create a new hash table */

Source from the content-addressed store, hash-verified

133
134/* Create a new hash table */
135dict *HashTableCreate
136(
137 const dictType *type
138) {
139 assert(type != NULL);
140
141 size_t metasize = type->dictMetadataBytes ? type->dictMetadataBytes() : 0;
142 dict *d = malloc(sizeof(*d) + metasize);
143 if (metasize) {
144 memset(HashTableMetadata(d), 0, metasize);
145 }
146
147 _dictInit(d, type);
148 return d;
149}
150
151// returns number of elements in hash table
152unsigned long HashTableElemCount

Callers 8

_list2dictFunction · 0.85
AR_DEDUPFunction · 0.85
ExecutionPlan_FreeFunction · 0.85
_ExecutionPlan_CloneFunction · 0.85
MergeConsumeFunction · 0.85
NewUpdateOpFunction · 0.85
NewAggregateOpFunction · 0.85
AggregateResetFunction · 0.85

Calls 2

HashTableMetadataFunction · 0.85
_dictInitFunction · 0.85

Tested by

no test coverage detected