|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.iter.Iter
public abstract class Iter
Iterator interface.
Constructor Summary | |
---|---|
Iter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Iter()
Method Detail |
---|
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. A calling method
should call reset()
after the last items has been retrieved.
i
- value offset
QueryException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |