public class MultithreadedItemMappingIterator<F extends Item,T extends Item> extends ItemMappingIterator<F,T>
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
MultithreadedItemMappingIterator(SequenceIterator base,
ItemMappingFunction<F,T> action) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the iterator.
|
T |
next()
Get the next item in the sequence.
|
getAnother, getBaseIterator, getLength, getMappingFunction, getProperties, hasNext, isOneToOne, setOneToOne
public MultithreadedItemMappingIterator(SequenceIterator base, ItemMappingFunction<F,T> action) throws XPathException
XPathException
public T next() throws XPathException
SequenceIterator
next
in interface SequenceIterator
next
in class ItemMappingIterator<F extends Item,T extends Item>
XPathException
- if an error occurs retrieving the next itempublic void close()
SequenceIterator
(Currently, closing an iterator is important only when the data is being "pushed" in another thread. Closing the iterator terminates that thread and means that it needs to do no additional work. Indeed, failing to close the iterator may cause the push thread to hang waiting for the buffer to be emptied.)
close
in interface SequenceIterator
close
in class ItemMappingIterator<F extends Item,T extends Item>
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.