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, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getAnother, getProperties, next
public ManualGroupIterator(Item item, int position)
item
- the context itemposition
- the context positionpublic boolean hasCurrentGroup()
GroupIterator
hasCurrentGroup
in interface GroupIterator
public boolean hasCurrentGroupingKey()
GroupIterator
hasCurrentGroupingKey
in interface GroupIterator
public ManualGroupIterator getSnapShot(XPathContext context) throws XPathException
GroupIterator
getSnapShot
in interface GroupIterator
XPathException
public void setCurrentGroupingKey(AtomicSequence key)
public AtomicSequence getCurrentGroupingKey()
GroupIterator
getCurrentGroupingKey
in interface GroupIterator
public void setCurrentGroup(Sequence group)
public SequenceIterator iterateCurrentGroup() throws XPathException
GroupIterator
iterateCurrentGroup
in interface GroupIterator
XPathException
- if a dynamic error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.