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

Function Schema_AddEdgeToIndices

src/schema/schema.c:558–573  ·  view source on GitHub ↗

index edge under all schema indices

Source from the content-addressed store, hash-verified

556
557// index edge under all schema indices
558void Schema_AddEdgeToIndices
559(
560 const Schema *s,
561 const Edge *e
562) {
563 ASSERT(s != NULL);
564 ASSERT(e != NULL);
565
566 Index idx = NULL;
567
568 idx = ACTIVE_EXACTMATCH_IDX(s);
569 if(idx != NULL) Index_IndexEdge(idx, e);
570
571 idx = PENDING_EXACTMATCH_IDX(s);
572 if(idx != NULL) Index_IndexEdge(idx, e);
573}
574
575// remove node from schema indicies
576void Schema_RemoveNodeFromIndices

Callers 4

_index_edgeFunction · 0.85
_AddEdgeToIndicesFunction · 0.85
CreateEdgeFunction · 0.85
UpdateEdgePropertyFunction · 0.85

Calls 1

Index_IndexEdgeFunction · 0.85

Tested by

no test coverage detected