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

Function _index_node

src/undo_log/undo_log.c:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 *(UndoOp*)DataBlock_AllocateItem((log), NULL) = op;
20
21static void _index_node
22(
23 QueryCtx *ctx,
24 Node *n
25) {
26 uint label_count;
27 NODE_GET_LABELS(ctx->gc->g, n, label_count);
28 for(uint j = 0; j < label_count; j++) {
29 Schema *s = GraphContext_GetSchemaByID(ctx->gc, labels[j], SCHEMA_NODE);
30 ASSERT(s);
31
32 if(Schema_HasIndices(s)) Schema_AddNodeToIndices(s, n);
33 }
34}
35
36static void _index_node_with_labels
37(

Callers 2

Calls 3

Schema_HasIndicesFunction · 0.85
Schema_AddNodeToIndicesFunction · 0.85

Tested by

no test coverage detected