Package net.sf.saxon.expr.sort
Class MergeGroupingIterator.ManualMergeGroupingIterator
- java.lang.Object
-
- net.sf.saxon.tree.iter.ManualIterator
-
- com.saxonica.ee.stream.ManualGroupIterator
-
- net.sf.saxon.expr.sort.MergeGroupingIterator.ManualMergeGroupingIterator
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,LastPositionFinder,GroupIterator,FocusIterator,SequenceIterator,GroundedIterator,LookaheadIterator,ReversibleIterator,UnfailingIterator
- Enclosing class:
- MergeGroupingIterator
public class MergeGroupingIterator.ManualMergeGroupingIterator extends ManualGroupIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.sf.saxon.om.SequenceIterator
SequenceIterator.Property
-
-
Constructor Summary
Constructors Constructor Description ManualMergeGroupingIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicSequencegetCurrentGroupingKey()Get the grouping key of the current groupintgetLength()Get the position of the last item in the sequenceSequenceIteratoriterateCurrentGroup()Get an iterator over the members of the current group, in population order.-
Methods inherited from class com.saxonica.ee.stream.ManualGroupIterator
appendToCurrentGroup, currentGroupContains, getSnapShot, setCurrentGroup, setCurrentGroupingKey, startNewCurrentGroup
-
Methods inherited from class net.sf.saxon.tree.iter.ManualIterator
current, getProperties, getResidue, getReverseIterator, hasNext, incrementPosition, materialize, next, position, setContextItem, setLastPositionFinder, setPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.SequenceIterator
close, forEachOrFail, getProperties
-
Methods inherited from interface net.sf.saxon.tree.iter.UnfailingIterator
forEach, toList
-
-
-
-
Method Detail
-
iterateCurrentGroup
public SequenceIterator iterateCurrentGroup()
Description copied from interface:GroupIteratorGet an iterator over the members of the current group, in population order. This must always be a clean iterator, that is, an iterator that starts at the first item of the group.- Specified by:
iterateCurrentGroupin interfaceGroupIterator- Overrides:
iterateCurrentGroupin classManualGroupIterator- Returns:
- an iterator over all the members of the current group, in population order.
-
getCurrentGroupingKey
public AtomicSequence getCurrentGroupingKey()
Description copied from interface:GroupIteratorGet the grouping key of the current group- Specified by:
getCurrentGroupingKeyin interfaceGroupIterator- Overrides:
getCurrentGroupingKeyin classManualGroupIterator- Returns:
- the current grouping key in the case of group-by or group-adjacent, or null in the case of group-starting-with and group-ending-with
-
getLength
public int getLength() throws XPathExceptionDescription copied from interface:FocusIteratorGet the position of the last item in the sequence- Specified by:
getLengthin interfaceFocusIterator- Specified by:
getLengthin interfaceLastPositionFinder- Overrides:
getLengthin classManualIterator- Returns:
- the position of the last item
- Throws:
XPathException- if a failure occurs reading the sequence
-
-