net.sf.saxon.sort

Class SortedTupleIterator

class SortedTupleIterator extends SortedIterator

A SortedTupleIterator is a modified SortedIterator. Whereas the sorted iterator used by XSLT computes the sort key of each item in a sequence, using that item as the context item, the SortedTupleIterator used by XQuery precomputes the sort keys from scratch; they do not need to be a function of the item being sorted.
Constructor Summary
SortedTupleIterator(XPathContext context, SequenceIterator base, FixedSortKeyDefinition[] sortKeys)
Method Summary
protected voidbuildArray()
Override the method that builds the array of values and sort keys.

Constructor Detail

SortedTupleIterator

public SortedTupleIterator(XPathContext context, SequenceIterator base, FixedSortKeyDefinition[] sortKeys)

Method Detail

buildArray

protected void buildArray()
Override the method that builds the array of values and sort keys.

Throws: XPathException