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 |
---|---|
void |
appendToCurrentGroup(Item item) |
boolean |
currentGroupContains(Item item) |
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
|
SequenceIterator |
iterateCurrentGroup()
Get an iterator over the members of the current group, in population
order.
|
void |
setCurrentGroup(java.util.List<Item> group) |
void |
setCurrentGroupingKey(AtomicSequence key) |
void |
startNewCurrentGroup(Item item) |
close, current, getLength, getProperties, getResidue, getReverseIterator, hasNext, incrementPosition, materialize, next, position, setContextItem, setLastPositionFinder, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getProperties, next
public ManualGroupIterator(Item item, int position)
item
- the context itemposition
- the context positionpublic 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(java.util.List<Item> group)
public void appendToCurrentGroup(Item item)
public void startNewCurrentGroup(Item item)
public SequenceIterator iterateCurrentGroup() throws XPathException
GroupIterator
iterateCurrentGroup
in interface GroupIterator
XPathException
- if a dynamic error occurspublic boolean currentGroupContains(Item item)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.