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. |
long |
size()
Returns the iterator size.
|
Value |
value()
Returns a value with all iterated items.
|
public abstract Item next() throws QueryException
null
if no other items are found.null
QueryException
- query exceptionpublic Item get(long i) throws QueryException
size()
returns the correct number of results.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 Value value() throws QueryException
next()
has not been called before.QueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.