public abstract class AbstractDbFileIterator extends java.lang.Object implements DbFileIterator
| Constructor and Description |
|---|
AbstractDbFileIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
If subclasses override this, they should call super.close().
|
boolean |
hasNext() |
Tuple |
next()
Gets the next tuple from the operator (typically implementing by reading
from a child operator or an access method).
|
protected abstract Tuple |
readNext()
Reads the next tuple from the underlying source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopen, rewindprivate Tuple next
public boolean hasNext()
throws DbException,
TransactionAbortedException
hasNext in interface DbFileIteratorDbExceptionTransactionAbortedExceptionpublic Tuple next() throws DbException, TransactionAbortedException, java.util.NoSuchElementException
DbFileIteratornext in interface DbFileIteratorjava.util.NoSuchElementException - if there are no more tuplesDbExceptionTransactionAbortedExceptionpublic void close()
close in interface DbFileIteratorprotected abstract Tuple readNext() throws DbException, TransactionAbortedException
DbExceptionTransactionAbortedException