public class MultithreadedItemMappingIterator extends ItemMappingIterator
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
MultithreadedItemMappingIterator(SequenceIterator base,
ItemMappingFunction action) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the iterator.
|
Item |
next()
Get the next item in the sequence.
|
getBaseIterator, getLength, getMappingFunction, getProperties, hasNext, isOneToOne, setOneToOne
public MultithreadedItemMappingIterator(SequenceIterator base, ItemMappingFunction action) throws XPathException
XPathException
public Item next() throws XPathException
SequenceIterator
next
in interface SequenceIterator
next
in class ItemMappingIterator
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
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.