| 15 | static void ApplyFree(OpBase *opBase); |
| 16 | |
| 17 | OpBase *NewApplyOp(const ExecutionPlan *plan) { |
| 18 | Apply *op = rm_malloc(sizeof(Apply)); |
| 19 | |
| 20 | op->r = NULL; |
| 21 | op->op_arg = NULL; |
| 22 | op->records = NULL; |
| 23 | op->rhs_branch = NULL; |
| 24 | op->bound_branch = NULL; |
| 25 | |
| 26 | // Set our Op operations |
| 27 | OpBase_Init((OpBase *)op, OPType_APPLY, "Apply", ApplyInit, ApplyConsume, |
| 28 | ApplyReset, NULL, ApplyClone, ApplyFree, false, plan); |
| 29 | |
| 30 | return (OpBase *)op; |
| 31 | } |
| 32 | |
| 33 | static OpResult ApplyInit(OpBase *opBase) { |
| 34 | ASSERT(opBase->childCount == 2); |
no test coverage detected