[prev] 16 [next]

Storage Manager Interface (cont)

startScan() might be implemented as:

Scan startScan(Reln r) {
   Scan s = MemAlloc(struct ScanData);
   s->file = r->file;
   s->page = null;
   s->pageno = 0;
   s->tupno = 0;
   return s;
}