net.sf.saxon.sort
public class SortedIterator extends Object implements SequenceIterator, LastPositionFinder, Sortable
Field Summary | |
---|---|
protected SequenceIterator | base |
protected XPathContext | context |
protected int | count |
protected int | index |
protected Object[] | nodeKeys |
protected int | recordSize |
protected FixedSortKeyDefinition[] | sortkeys |
Constructor Summary | |
---|---|
SortedIterator(XPathContext context, SequenceIterator base, FixedSortKeyDefinition[] sortkeys) |
Method Summary | |
---|---|
protected void | buildArray() |
int | compare(int a, int b)
Compare two items in sorted sequence
(needed to implement the Sortable interface) |
Item | current() |
SequenceIterator | getAnother() |
int | getLastPosition() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
Item | next()
Get the next item, in sorted order |
int | position() |
void | setHostLanguage(int language) |
void | swap(int a, int b)
Swap two items (needed to implement the Sortable interface) |
Returns: <0 if obj[a]
Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED, LAST_POSITION_FINDER, and LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.