net.sf.saxon.sort
public class GroupAdjacentIterator extends Object implements GroupIterator, LookaheadIterator
Each step of this iterator advances to the first item of the next group, leaving the members of that group in a saved list.
Constructor Summary | |
---|---|
GroupAdjacentIterator(SequenceIterator population, Expression keyExpression, XPathContext baseContext, Comparator collator) |
Method Summary | |
---|---|
Item | current() |
SequenceIterator | getAnother() |
AtomicValue | getCurrentGroupingKey() |
int | getProperties()
Get properties of this iterator, as a bit-significant integer.
|
boolean | hasNext() |
SequenceIterator | iterateCurrentGroup() |
Item | next() |
int | position() |
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.