public abstract class ManualGroupIterator extends ManualIterator implements GroupIterator
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
ManualGroupIterator(Item item,
int position)
Create a manual grouping iterator
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
setGroupSlot(int groupSlot)
Set the slot number of the variable holding the current group
|
void |
setKeySlot(int keySlot)
Set the slot number of the variable holding the current grouping 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
getCurrentGroupingKey, iterateCurrentGroup
close, current, getAnother, getProperties, next, position
public ManualGroupIterator(Item item, int position)
item
- the context itemposition
- the context positionpublic void setGroupSlot(int groupSlot)
setGroupSlot
in interface GroupIterator
groupSlot
- the stack frame position of the variable holding the current grouppublic void setKeySlot(int keySlot)
setKeySlot
in interface GroupIterator
keySlot
- the stack frame position of the variable holding the current grouping keypublic 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
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.