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

Function Index_Populate

src/index/index_construct.c:221–239  ·  view source on GitHub ↗

constructs index

Source from the content-addressed store, hash-verified

219
220// constructs index
221void Index_Populate
222(
223 Index idx,
224 Graph *g
225) {
226 ASSERT(g != NULL);
227 ASSERT(idx != NULL);
228 ASSERT(!Index_Enabled(idx)); // index should have pending changes
229
230 //--------------------------------------------------------------------------
231 // populate index
232 //--------------------------------------------------------------------------
233
234 if(Index_GraphEntityType(idx) == GETYPE_NODE) {
235 _Index_PopulateNodeIndex(idx, g);
236 } else {
237 _Index_PopulateEdgeIndex(idx, g);
238 }
239}
240

Callers 3

RdbLoadGraphContext_v9Function · 0.85
RdbLoadGraphContext_v8Function · 0.85
_indexer_idx_populateFunction · 0.85

Calls 4

Index_EnabledFunction · 0.85
Index_GraphEntityTypeFunction · 0.85
_Index_PopulateNodeIndexFunction · 0.85
_Index_PopulateEdgeIndexFunction · 0.85

Tested by

no test coverage detected