Package org.basex.query.iter
Class AtomIter
java.lang.Object
org.basex.query.iter.Iter
org.basex.query.iter.AtomIter
Atomization iterator.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
ConstructorsConstructorDescriptionAtomIter(Iter iter, QueryContext qc, InputInfo info, long size) Constructor. -
Method Summary
-
Constructor Details
-
AtomIter
Constructor.- Parameters:
iter- input iteratorqc- query contextinfo- input infosize- iterator size (can be-1)
-
-
Method Details
-
next
Description copied from class:IterReturns the next item.- Specified by:
nextin classIter- Returns:
- resulting item, or
nullif all items have been returned - Throws:
QueryException- query exception
-
size
public long size()Description copied from class:IterReturns the iterator size.-1is returned if the result size is unknown. If this method returns a positive value,Iter.get(long)needs to be implemented as well. -
get
Description copied from class:IterReturns the specified item, or an arbitrary item if the index is invalid. If this method returns items,Iter.size()needs to be implemented as well.- Overrides:
getin classIter- Parameters:
i- value offset (starting with 0)- Returns:
- specified item or
null - Throws:
QueryException- query exception
-