SwatDB
heapfilescanner.h
Go to the documentation of this file.
1 /*
2  * SwatDB
3  *
4  * @authors: See Contributors.doc for code contributors
5  *
6  * Copyright (c) 2020 Swarthmore College Computer Science Department
7  * Swarthmore PA, Professors Tia Newhall, Ameet Soni
8  */
9 
10 #pragma once
11 
16 #include <string>
17 #include <vector>
18 #include <mutex>
19 #include "swatdb_types.h"
20 #include "file.h" //for inheritance
21 
22 class HeapPage;
23 class HeapFile;
24 
32 
33  public:
34 
45 
53 
74  RecordId getNext(Record* record);
75 
76  private:
77 
83 
88 
93 
99 
104 
110 
116 };
117 
HeapFileScanner(HeapFile *file)
Constructor.
HeapPage * cur_page
Definition: heapfilescanner.h:92
bool end_of_full
Definition: heapfilescanner.h:109
Definition: swatdb_types.h:66
Definition: heapfilescanner.h:31
BufferManager * buf_mgr
Definition: heapfilescanner.h:82
RecordId getNext(Record *record)
Returns RecordId of the next Record in the HeapFile and initializes the given Record object to the da...
Definition: heappage.h:89
bool end_of_free
Definition: heapfilescanner.h:115
Definition: bufmgr.h:248
Definition: swatdb_types.h:50
Definition: record.h:28
HeapFile * file
Definition: heapfilescanner.h:103
Definition: heapfile.h:71
HeapPageScanner * scanner
Definition: heapfilescanner.h:98
PageId cur_pid
Definition: heapfilescanner.h:87
~HeapFileScanner()
Destructor.
Definition: heappagescanner.h:31