public class MergeGroupingIterator.ManualMergeGroupingIterator extends ManualGroupIterator
ATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor and Description |
---|
MergeGroupingIterator.ManualMergeGroupingIterator() |
Modifier and Type | Method and Description |
---|---|
MergeGroupingIterator.ManualMergeGroupingIterator |
getAnother()
Get another SequenceIterator that iterates over the same items as the original,
but which is repositioned at the start of the sequence.
|
AtomicSequence |
getCurrentGroupingKey()
Get the grouping key of the current group
|
int |
getLength()
Get the position of the last item in the sequence
|
SequenceIterator |
iterateCurrentGroup()
Get an iterator over the members of the current group, in population
order.
|
getSnapShot, hasCurrentGroup, hasCurrentGroupingKey, setCurrentGroup, setCurrentGroupingKey
close, current, getProperties, getReverseIterator, hasNext, incrementPosition, materialize, next, position, setContextItem, setLastPositionFinder, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getProperties, next
public MergeGroupingIterator.ManualMergeGroupingIterator()
public SequenceIterator iterateCurrentGroup() throws XPathException
GroupIterator
iterateCurrentGroup
in interface GroupIterator
iterateCurrentGroup
in class ManualGroupIterator
XPathException
- if a dynamic error occurspublic AtomicSequence getCurrentGroupingKey()
GroupIterator
getCurrentGroupingKey
in interface GroupIterator
getCurrentGroupingKey
in class ManualGroupIterator
public MergeGroupingIterator.ManualMergeGroupingIterator getAnother()
FocusIterator
This method allows access to all the items in the sequence without disturbing the current position of the iterator. Internally, its main use is in evaluating the last() function.
This method does not change the state of the iterator.
Some implementations of this method may regenerate the input sequence, creating new nodes with different identity from the original. This is not recommended, but is hard to prevent. This causes no problem for the primary usage of this method to support the last() function, but it has been known to cause trouble in other situations.
getAnother
in interface FocusIterator
getAnother
in interface SequenceIterator
getAnother
in interface UnfailingIterator
getAnother
in class ManualIterator
public int getLength() throws XPathException
FocusIterator
getLength
in interface LastPositionFinder
getLength
in interface FocusIterator
getLength
in class ManualIterator
XPathException
- if a failure occurs reading the sequenceCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.