public class ManualGroupIterator extends ManualIterator<Item<?>> 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, setPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, forEachOrFail, getProperties, materialize, nextfirstWith, forEach, toGroundedValue, toListpublic ManualGroupIterator(Item item, int position)
item - the context itemposition - the context positionpublic ManualGroupIterator getSnapShot(XPathContext context)
GroupIteratorgetSnapShot in interface GroupIteratorpublic void setCurrentGroupingKey(AtomicSequence key)
public AtomicSequence getCurrentGroupingKey()
GroupIteratorgetCurrentGroupingKey in interface GroupIteratorpublic void setCurrentGroup(java.util.List<Item<?>> group)
public void appendToCurrentGroup(Item item)
public void startNewCurrentGroup(Item item)
public SequenceIterator<?> iterateCurrentGroup() throws XPathException
GroupIteratoriterateCurrentGroup in interface GroupIteratorXPathException - if a dynamic error occurspublic boolean currentGroupContains(Item item)
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.