private class Union.UnionIterator extends ResultIterator
ResultIterator.BufferedIterator, ResultIterator.CachedIterator, ResultIterator.EmptyIterator, ResultIterator.ListIterator, ResultIterator.SingleIterator| Modifier and Type | Field and Description |
|---|---|
QueryContext |
context |
int |
currentDirective |
ResultRow[] |
firstRows |
ResultRow |
input |
ResultIterator[] |
iterators |
ResultRow |
nextRow |
java.util.ArrayList<java.lang.String> |
roles |
| Constructor and Description |
|---|
UnionIterator(QueryContext context,
ResultRow input) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Finalizes the iterator and performs any cleanup needed.
|
boolean |
hasNext()
Checks if there is another row available.
|
private ResultRow |
makeRow(ResultRow row) |
ResultRow |
next()
Gets the next row in the results and moves the iterator forward one row.
|
void |
reset()
Resets the iterator to its initial position.
|
public QueryContext context
public ResultRow input
public ResultRow[] firstRows
public ResultIterator[] iterators
public int currentDirective
public java.util.ArrayList<java.lang.String> roles
public ResultRow nextRow
public UnionIterator(QueryContext context, ResultRow input) throws QueryException
QueryExceptionprivate ResultRow makeRow(ResultRow row) throws QueryException
QueryExceptionpublic void dispose()
throws QueryException
ResultIteratordispose in class ResultIteratorQueryExceptionpublic boolean hasNext()
throws QueryException
ResultIteratorhasNext in class ResultIteratorQueryExceptionpublic ResultRow next() throws QueryException, java.util.NoSuchElementException
ResultIteratornext in class ResultIteratorQueryExceptionjava.util.NoSuchElementExceptionpublic void reset()
throws QueryException
ResultIteratorreset in class ResultIteratorQueryExceptionCopyright 2004-2015 Wandora Team