Interface GroupIterator

    • Method Detail

      • getCurrentGroupingKey

        AtomicSequence getCurrentGroupingKey()
        Get the grouping key of the current group
        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
      • currentGroup

        GroundedValue currentGroup()
                            throws XPathException
        Get a sequence containing the members of the current group, in population order. This may be a MemoSequence rather than a grounded value
        Returns:
        a sequence containing all the members of the current group, in population order.
        Throws:
        XPathException - if a dynamic error occurs
      • getSnapShot

        ManualGroupIterator getSnapShot​(XPathContext context)
                                 throws XPathException
        Get a pseudo-iterator which represents a snapshot of this sequence at the current position
        Parameters:
        context - the XPath context
        Returns:
        the snapshot sequence
        Throws:
        XPathException - if any error occurs