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

Function Schema_GetIndicies

src/schema/schema.c:370–394  ·  view source on GitHub ↗

retrieves all indicies from schema active exact-match index pending exact-match index active fulltext index pending fulltext index returns number of indicies set

Source from the content-addressed store, hash-verified

368// pending fulltext index
369// returns number of indicies set
370unsigned short Schema_GetIndicies
371(
372 const Schema *s,
373 Index indicies[4]
374) {
375 int i = 0;
376
377 if(ACTIVE_EXACTMATCH_IDX(s) != NULL) {
378 indicies[i++] = ACTIVE_EXACTMATCH_IDX(s);
379 }
380
381 if(PENDING_EXACTMATCH_IDX(s) != NULL) {
382 indicies[i++] = PENDING_EXACTMATCH_IDX(s);
383 }
384
385 if(ACTIVE_FULLTEXT_IDX(s) != NULL) {
386 indicies[i++] = ACTIVE_FULLTEXT_IDX(s);
387 }
388
389 if(PENDING_FULLTEXT_IDX(s) != NULL) {
390 indicies[i++] = PENDING_FULLTEXT_IDX(s);
391 }
392
393 return i;
394}
395
396// get index from schema
397// returns NULL if index wasn't found

Callers 1

Proc_IndexesInvokeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected