public static class GroupByIterator.ManualGroupByIterator extends ManualGroupIterator
Constructor and Description |
---|
ManualGroupByIterator(java.util.List<java.util.List<Item>> groups,
java.util.List<AtomicSequence> groupKeys,
int position) |
Modifier and Type | Method and Description |
---|---|
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.
|
appendToCurrentGroup, currentGroupContains, getSnapShot, setCurrentGroup, setCurrentGroupingKey, startNewCurrentGroup
current, getResidue, getReverseIterator, hasNext, incrementPosition, isActuallyGrounded, materialize, next, position, setContextItem, setLengthFinder, setPosition, supportsGetLength, supportsHasNext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, discharge, next
public ManualGroupByIterator(java.util.List<java.util.List<Item>> groups, java.util.List<AtomicSequence> groupKeys, int position)
public SequenceIterator iterateCurrentGroup()
GroupIterator
iterateCurrentGroup
in interface GroupIterator
iterateCurrentGroup
in class ManualGroupIterator
public AtomicSequence getCurrentGroupingKey()
GroupIterator
getCurrentGroupingKey
in interface GroupIterator
getCurrentGroupingKey
in class ManualGroupIterator
public int getLength()
FocusIterator
getLength
in interface LastPositionFinder
getLength
in interface FocusIterator
getLength
in class ManualIterator
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.