Class GroupByIterator.ManualGroupByIterator

    • Constructor Detail

      • ManualGroupByIterator

        public ManualGroupByIterator​(java.util.List<java.util.List<Item>> groups,
                                     java.util.List<AtomicSequence> groupKeys,
                                     int position)
    • Method Detail

      • iterateCurrentGroup

        public SequenceIterator iterateCurrentGroup()
        Description copied from interface: GroupIterator
        Get 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:
        iterateCurrentGroup in interface GroupIterator
        Overrides:
        iterateCurrentGroup in class com.saxonica.ee.stream.ManualGroupIterator
        Returns:
        an iterator over all the members of the current group, in population order.
      • getCurrentGroupingKey

        public AtomicSequence getCurrentGroupingKey()
        Description copied from interface: GroupIterator
        Get the grouping key of the current group
        Specified by:
        getCurrentGroupingKey in interface GroupIterator
        Overrides:
        getCurrentGroupingKey in class com.saxonica.ee.stream.ManualGroupIterator
        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