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

Function Schema_AddNodeToIndices

src/schema/schema.c:534–555  ·  view source on GitHub ↗

index node under all schema indices

Source from the content-addressed store, hash-verified

532
533// index node under all schema indices
534void Schema_AddNodeToIndices
535(
536 const Schema *s,
537 const Node *n
538) {
539 ASSERT(s != NULL);
540 ASSERT(n != NULL);
541
542 Index idx = NULL;
543
544 idx = ACTIVE_EXACTMATCH_IDX(s);
545 if(idx != NULL) Index_IndexNode(idx, n);
546
547 idx = PENDING_EXACTMATCH_IDX(s);
548 if(idx != NULL) Index_IndexNode(idx, n);
549
550 idx = ACTIVE_FULLTEXT_IDX(s);
551 if(idx != NULL) Index_IndexNode(idx, n);
552
553 idx = PENDING_FULLTEXT_IDX(s);
554 if(idx != NULL) Index_IndexNode(idx, n);
555}
556
557// index edge under all schema indices
558void Schema_AddEdgeToIndices

Callers 6

_index_nodeFunction · 0.85
_index_node_with_labelsFunction · 0.85
_AddNodeToIndicesFunction · 0.85
CreateNodeFunction · 0.85
UpdateNodePropertyFunction · 0.85
UpdateNodeLabelsFunction · 0.85

Calls 1

Index_IndexNodeFunction · 0.85

Tested by

no test coverage detected