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

Function Index_ContainsAttribute

src/index/index.c:474–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474bool Index_ContainsAttribute
475(
476 const Index idx,
477 Attribute_ID attribute_id
478) {
479 ASSERT(idx != NULL);
480
481 if(attribute_id == ATTRIBUTE_ID_NONE) return false;
482
483 uint fields_count = array_len(idx->fields);
484 for(uint i = 0; i < fields_count; i++) {
485 IndexField *field = idx->fields + i;
486 if(field->id == attribute_id) return true;
487 }
488
489 return false;
490}
491
492// returns indexed label
493const char *Index_GetLabel

Callers 5

Index_AddFieldFunction · 0.85
Schema_AddFullTextIndexFunction · 0.85
Schema_GetIndexFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected