net.sf.saxon.functions

Class DistinctValues

public class DistinctValues extends CollatingFunction

The XPath 2.0 distinct-values() function
Nested Class Summary
static classDistinctValues.DistinctIterator
Iterator class to return the distinct values in a sequence
Method Summary
protected AtomicSortComparergetAtomicSortComparer(int arg, XPathContext context)
Get a AtomicSortComparer that can be used to compare values
SequenceIteratoriterate(XPathContext context)
Evaluate the function to return an iteration of selected values or nodes.

Method Detail

getAtomicSortComparer

protected AtomicSortComparer getAtomicSortComparer(int arg, XPathContext context)
Get a AtomicSortComparer that can be used to compare values

Parameters: arg the position of the argument (starting at 0) containing the collation name. If this argument was not supplied, the default collation is used context The dynamic evaluation context.

iterate

public SequenceIterator iterate(XPathContext context)
Evaluate the function to return an iteration of selected values or nodes.