#include <RecordIterator.h>
This class does not implement the Iterator interface because of the potential I/O exceptions. While they could be appropriately handled, it seemed more straightforward just to pass them on through.
Public Member Functions | |
RecordIterator (BufferManager *buf, int firstId, string file) | |
Constructs a record iterator. | |
~RecordIterator () | |
Destructor. | |
bool | hasNext () |
Returns true if the iterator has more records. | |
RID | next () |
Returns the next RID in the iteration. |
RecordIterator::RecordIterator | ( | BufferManager * | buf, | |
int | firstId, | |||
string | file | |||
) |
Constructs a record iterator.
buf | pointer to a buffer manager to use for managing pages in memory. | |
firstId | the page id of the starting page. | |
file | the name of the file that the page are drawn from. |
bool RecordIterator::hasNext | ( | ) |
Returns true if the iterator has more records.
RID RecordIterator::next | ( | ) |