|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DbIterator
DbIterator is the iterator interface that all SimpleDB operators should implement.
Method Summary | |
---|---|
void |
close()
Closes the iterator. |
TupleDesc |
getTupleDesc()
Returns the TupleDesc associated with this DbIterator. |
boolean |
hasNext()
|
Tuple |
next()
Gets the next tuple from the operator (typically implementing by reading from a child operator or an access method). |
void |
open()
Opens the iterator. |
void |
rewind()
Resets the iterator to the start. |
Method Detail |
---|
void open() throws DbException, TransactionAbortedException
java.util.NoSuchElementException
- when the iterator has no elements.
DbException
- when there are problems opening/accessing the database.
TransactionAbortedException
boolean hasNext() throws DbException, TransactionAbortedException
DbException
TransactionAbortedException
Tuple next() throws DbException, TransactionAbortedException, java.util.NoSuchElementException
DbException
TransactionAbortedException
java.util.NoSuchElementException
void rewind() throws DbException, TransactionAbortedException
DbException
- When rewind is unsupported.
TransactionAbortedException
TupleDesc getTupleDesc()
void close()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |