|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.functions.DistinctValues.DistinctIterator
Iterator class to return the distinct values in a sequence
| Constructor Summary | |
DistinctValues.DistinctIterator(SequenceIterator base,
AtomicSortComparer comparer)
Create an iterator over the distinct values in a sequence |
|
| Method Summary | |
Item |
current()
Get the current value in the sequence (the one returned by the most recent call on next()). |
SequenceIterator |
getAnother()
Get another SequenceIterator that iterates over the same items as the original, but which is repositioned at the start of the sequence. |
Item |
next()
Get the next item in the sequence. |
int |
position()
Get the current position. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DistinctValues.DistinctIterator(SequenceIterator base,
AtomicSortComparer comparer)
base - the input sequence. This must return atomic values only.comparer - The comparer used to obtain comparison keys from each value;
these comparison keys are themselves compared using equals().| Method Detail |
public Item next()
throws XPathException
next in interface SequenceIteratorXPathException - if an error occurs retrieving the next itempublic Item current()
current in interface SequenceIteratorpublic int position()
position in interface SequenceIterator
public SequenceIterator getAnother()
throws XPathException
getAnother in interface SequenceIteratorXPathException - if any error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||