public class SortedGroupIterator extends SortedIterator implements GroupIterator
base, comparators, context, count, position, sortKeyEvaluator, valuesGROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
SortedGroupIterator(XPathContext context,
GroupIterator base,
SortKeyEvaluator sortKeyEvaluator,
AtomicComparer[] comparators) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildArray()
Override the method that builds the array of values and sort keys.
|
AtomicSequence |
getCurrentGroupingKey()
Get the grouping key of the current group
|
ManualGroupIterator |
getSnapShot(XPathContext context)
Get a sequence which is a snapshot of this sequence at the current position
|
boolean |
hasCurrentGroup()
Ask whether this iterator has a current group
|
boolean |
hasCurrentGroupingKey()
Ask whether this iterator has a current grouping key
|
SequenceIterator |
iterateCurrentGroup()
Get an iterator over the members of the current group, in population
order.
|
Item |
next()
Get the next item, in sorted order
|
void |
setGroupSlot(int groupSlot)
Set a local variable slot to hold the value of the current group
|
void |
setKeySlot(int keySlot)
Set a local variable slot to hold the value of the current grouping key
|
close, compare, current, getAnother, getLength, getProperties, hasNext, position, setHostLanguage, swapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, current, getAnother, getProperties, positionpublic SortedGroupIterator(XPathContext context, GroupIterator base, SortKeyEvaluator sortKeyEvaluator, AtomicComparer[] comparators)
public void setGroupSlot(int groupSlot)
GroupIteratorsetGroupSlot in interface GroupIteratorgroupSlot - the stack frame position of the variable holding the current grouppublic void setKeySlot(int keySlot)
GroupIteratorsetKeySlot in interface GroupIteratorkeySlot - the stack frame position of the variable holding the current grouping keyprotected void buildArray()
throws XPathException
buildArray in class SortedIteratorXPathExceptionpublic Item next() throws XPathException
SortedIteratornext in interface SequenceIteratornext in class SortedIteratorXPathException - if an error occurs retrieving the next itempublic AtomicSequence getCurrentGroupingKey()
GroupIteratorgetCurrentGroupingKey in interface GroupIteratorpublic SequenceIterator iterateCurrentGroup() throws XPathException
GroupIteratoriterateCurrentGroup in interface GroupIteratorXPathException - if a dynamic error occurspublic boolean hasCurrentGroup()
GroupIteratorhasCurrentGroup in interface GroupIteratorpublic boolean hasCurrentGroupingKey()
GroupIteratorhasCurrentGroupingKey in interface GroupIteratorpublic ManualGroupIterator getSnapShot(XPathContext context) throws XPathException
GroupIteratorgetSnapShot in interface GroupIteratorXPathExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.