public static class Aggregator.TupleMapIterator extends java.lang.Object implements DbIterator
DbIterator,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.HashMap<Field,Tuple> |
fieldTupleMap |
(package private) Field[] |
keyArray |
(package private) int |
position |
(package private) TupleDesc |
tupleDesc |
| Constructor and Description |
|---|
TupleMapIterator(java.util.HashMap<Field,Tuple> fieldTupleMap,
TupleDesc tupleDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the iterator.
|
TupleDesc |
getTupleDesc()
Returns the TupleDesc associated with this DbIterator.
|
boolean |
hasNext()
Returns true if the iterator has more tuples.
|
Tuple |
next()
Returns 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.
|
public void open()
throws DbException,
TransactionAbortedException
DbIteratoropen in interface DbIteratorDbException - when there are problems opening/accessing the database.TransactionAbortedExceptionpublic boolean hasNext()
throws DbException,
TransactionAbortedException
DbIteratorhasNext in interface DbIteratorDbExceptionTransactionAbortedExceptionpublic Tuple next() throws DbException, TransactionAbortedException, java.util.NoSuchElementException
DbIteratornext in interface DbIteratorjava.util.NoSuchElementException - if there are no more tuples.DbExceptionTransactionAbortedExceptionpublic void rewind()
throws DbException,
TransactionAbortedException
DbIteratorrewind in interface DbIteratorDbException - when rewind is unsupported.TransactionAbortedExceptionpublic TupleDesc getTupleDesc()
DbIteratorgetTupleDesc in interface DbIteratorpublic void close()
DbIteratorclose in interface DbIterator