public class MultiQueryIterator<E extends BasicItem> extends Object implements Iterator<E>
Modifier and Type | Field and Description |
---|---|
private Iterator<? extends E> |
current |
private DbControl |
dc |
private int |
nextQuery |
private int |
numReturned |
private ItemQuery<? extends E>[] |
queries |
Modifier | Constructor and Description |
---|---|
private |
MultiQueryIterator(DbControl dc,
ItemQuery<? extends E>[] queries) |
Modifier and Type | Method and Description |
---|---|
static <E extends BasicItem> |
get(DbControl dc,
ItemQuery<? extends E>... queries)
Create a new iterator for the given list of queries.
|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private final DbControl dc
private int nextQuery
private int numReturned
@SafeVarargs public static <E extends BasicItem> Iterator<E> get(DbControl dc, ItemQuery<? extends E>... queries)
dc
- The DbControl to use when executing the queriesqueries
- An array of queries to execute