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, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, forEachOrFail, getProperties, materialize, next
firstWith, forEach, toGroundedValue, toList
public ManualGroupIterator(Item item, int position)
item
- the context itemposition
- the context positionpublic ManualGroupIterator getSnapShot(XPathContext context)
GroupIterator
getSnapShot
in interface GroupIterator
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-2020 Saxonica Limited. All rights reserved.