public class ManualGroupIterator extends ManualIterator implements GroupIterator
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
ManualGroupIterator(Item item,
int position)
Create a manual grouping iterator
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setCurrentGroup(Sequence group) |
void |
setCurrentGroupingKey(AtomicSequence key) |
close, current, getAnother, getLength, getProperties, getReverseIterator, hasNext, incrementPosition, materialize, next, position, setContextItem, setLastPositionFinder, setPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getAnother, getProperties, nextpublic ManualGroupIterator(Item item, int position)
item - the context itemposition - the context positionpublic boolean hasCurrentGroup()
GroupIteratorhasCurrentGroup in interface GroupIteratorpublic boolean hasCurrentGroupingKey()
GroupIteratorhasCurrentGroupingKey in interface GroupIteratorpublic ManualGroupIterator getSnapShot(XPathContext context) throws XPathException
GroupIteratorgetSnapShot in interface GroupIteratorXPathExceptionpublic void setCurrentGroupingKey(AtomicSequence key)
public AtomicSequence getCurrentGroupingKey()
GroupIteratorgetCurrentGroupingKey in interface GroupIteratorpublic void setCurrentGroup(Sequence group)
public SequenceIterator iterateCurrentGroup() throws XPathException
GroupIteratoriterateCurrentGroup in interface GroupIteratorXPathException - if a dynamic error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.