net.sf.saxon.sort
public class SortedTupleIterator extends SortedIterator
The items returned by the SortedTupleIterator are instance of ObjectValue, which encapsulate a Value representing the contents of the tuple.
Constructor Summary | |
---|---|
SortedTupleIterator(XPathContext context, SequenceIterator base, AtomicComparer[] comparators)
Create a sorted tuple iterator |
Method Summary | |
---|---|
protected void | buildArray()
Override the method that builds the array of values and sort keys. |
Parameters: context the dynamic context base the base iterator, which returns the unsorted tuples. Each tuple is represented by an ObjectValue which wraps an array of Value objects. The first Value object represents the tuple itself. Subsequent Value objects represent the sort key values, in order. comparators the comparators used for comparing sort keys
Throws: XPathException