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

Function OpBase_Init

src/execution_plan/ops/op.c:28–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void OpBase_Init
29(
30 OpBase *op,
31 OPType type,
32 const char *name,
33 fpInit init,
34 fpConsume consume,
35 fpReset reset,
36 fpToString toString,
37 fpClone clone,
38 fpFree free,
39 bool writer,
40 const struct ExecutionPlan *plan
41) {
42 op->type = type;
43 op->name = name;
44 op->plan = plan;
45 op->stats = NULL;
46 op->parent = NULL;
47 op->parent = NULL;
48 op->writer = writer;
49 op->modifies = NULL;
50 op->children = NULL;
51 op->childCount = 0;
52 op->op_initialized = false;
53
54 // function pointers
55 op->init = init;
56 op->free = free;
57 op->clone = clone;
58 op->reset = (reset) ? reset : _OpBase_reset_noop;
59 op->profile = NULL;
60 op->consume = consume;
61 op->toString = toString;
62}
63
64inline Record OpBase_Consume
65(

Callers 15

NewProcCallOpFunction · 0.85
NewApplyOpFunction · 0.85
NewApplyMultiplexerOpFunction · 0.85
NewLimitOpFunction · 0.85
NewOptionalOpFunction · 0.85
NewNodeByLabelScanOpFunction · 0.85
NewCreateOpFunction · 0.85
NewEdgeIndexScanOpFunction · 0.85
NewCallSubqueryOpFunction · 0.85
NewIndexScanOpFunction · 0.85
NewCondVarLenTraverseOpFunction · 0.85
NewNodeByIdSeekOpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected