diff options
Diffstat (limited to '')
| -rw-r--r-- | src/VM.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -2,4 +2,19 @@ namespace nt { + VM::VM(CursorManager& cursors) : cursors_(cursors) {} + + Tuple* VM::Next(PlanNode* node) + { + if (node == nullptr) + return nullptr; + + switch (node->op) + { + case PlanNode::Op::SCAN: + return cursors_.Next(node->scan_cursor); + } + + return nullptr; + } } |
