Class DistinctValues

    • Constructor Detail

      • DistinctValues

        public DistinctValues()
    • Method Detail

      • getAtomicComparer

        public AtomicComparer getAtomicComparer()
        Get the AtomicComparer allocated at compile time.
        Returns:
        the AtomicComparer if one has been allocated at compile time; return null if the collation is not known until run-time
      • makeAtomicComparer

        public AtomicComparer makeAtomicComparer​(XPathContext context)
                                          throws XPathException
        Get the AtomicComparer, creating it if it was not allocated at compile time.
        Returns:
        the AtomicComparer already allocated if one has been allocated at compile time; otherwise allocate one from knowledge of the collation at run-time
        Throws:
        XPathException
      • iterate

        public SequenceIterator iterate​(XPathContext context)
                                 throws XPathException
        Evaluate the function to return an iteration of selected values or nodes.
        Overrides:
        iterate in class Expression
        Parameters:
        context - supplies the context for evaluation
        Returns:
        a SequenceIterator that can be used to iterate over the result of the expression
        Throws:
        XPathException - if any dynamic error occurs evaluating the expression