blob: b5824d0a3371762f86646fef829096ddcb364c23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "VM.h"
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;
}
}
|