| Constructor and Description |
|---|
Iter() |
| Modifier and Type | Method and Description |
|---|---|
Item |
get(long i)
Returns the specified item, or an arbitrary item if the index is invalid.
|
abstract Item |
next()
Returns the next item or
null if no other items are found. |
boolean |
reset()
Resets the iterator and returns
true if operation was successful. |
long |
size()
Returns the iterator size.
|
Value |
value()
Returns a sequence with all iterator values.
|
public abstract Item next() throws QueryException
null if no other items are found.nullQueryException - query exceptionpublic Item get(long i) throws QueryException
size() returns the correct number of results. A calling method
should call reset() after the last items has been retrieved.i - value offsetQueryException - query exceptionpublic long size()
-1 is returned if the
result size is unknown. If this method is implemented by an iterator,
get(long) needs to be implemented as well.public boolean reset()
true if operation was successful.
false is returned if the iterator cannot be reset.public Value value() throws QueryException
next() has not been called before.QueryException - query exception