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