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, wait
open, rewind
private Tuple next
public boolean hasNext() throws DbException, TransactionAbortedException
hasNext
in interface DbFileIterator
DbException
TransactionAbortedException
public Tuple next() throws DbException, TransactionAbortedException, java.util.NoSuchElementException
DbFileIterator
next
in interface DbFileIterator
java.util.NoSuchElementException
- if there are no more tuplesDbException
TransactionAbortedException
public void close()
close
in interface DbFileIterator
protected abstract Tuple readNext() throws DbException, TransactionAbortedException
DbException
TransactionAbortedException