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

Function Schema_IndexCount

src/schema/schema.c:351–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351unsigned short Schema_IndexCount
352(
353 const Schema *s
354) {
355 ASSERT(s != NULL);
356 unsigned short n = 0;
357
358 if(ACTIVE_FULLTEXT_IDX(s) || PENDING_FULLTEXT_IDX(s)) n += 1;
359 if(ACTIVE_EXACTMATCH_IDX(s) || PENDING_EXACTMATCH_IDX(s)) n += 1;
360
361 return n;
362}
363
364// retrieves all indicies from schema
365// active exact-match index

Callers 2

_RdbSaveSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected