|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectRecordIterator
public class RecordIterator
Record iterator. 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.
| Constructor Summary | |
|---|---|
RecordIterator(BufferManager buf,
int firstId,
java.lang.String file)
Constructs a record iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns true if the iterator has more records. |
RID |
next()
Returns the next RID in the iteration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordIterator(BufferManager buf,
int firstId,
java.lang.String file)
throws java.io.IOException
buf - 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.
java.io.IOException - passed through from underlying file system.| Method Detail |
|---|
public boolean hasNext()
throws java.io.IOException
java.io.IOException - passed through from underlying file system.
public RID next()
throws java.io.IOException
java.io.IOException - passed through from underlying file system.
NoSuchElementException - iteration has no more pages.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||