LastPositionFinder
, LookaheadIterator
, SequenceIterator
, Sortable
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.
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
base, comparators, context, count, nodeKeys, position, recordSize, sortKeyEvaluator
Constructor | Description |
---|---|
SortedTupleIterator(XPathContext context,
SequenceIterator base,
AtomicComparer[] comparators) |
Create a sorted tuple iterator
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
buildArray() |
Override the method that builds the array of values and sort keys.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, compare, current, getAnother, getLastPosition, getProperties, hasNext, next, position, setHostLanguage, swap
public SortedTupleIterator(XPathContext context, SequenceIterator base, AtomicComparer[] comparators)
context
- the dynamic contextbase
- 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 keysprotected void buildArray() throws XPathException
buildArray
in class SortedIterator
XPathException