Class ValuesOrWordsFunction

    • Constructor Detail

      • ValuesOrWordsFunction

        public ValuesOrWordsFunction()
    • Method Detail

      • getStart

        public String getStart()
        Get the starting value for the function.

        This method corresponds to the $start parameter value of a lexicon function. Override the method to specify a lexicon starting position other than the default.

        The returned value must have the expected type when evaluated as XQuery. Therefore, if the data type of the start value is xs:string, the returned string must include escaped double quotes. For example, if the start value should be the string "foo" in XQuery, return "\"foo\"".

        Returns:
        the starting value for the function.
      • getInputQuery

        public String getInputQuery​(Collection<String> nsCol,
                                    long start,
                                    long count)
        Description copied from class: LexiconFunction
        Get the input query used by a record reader. Users must not override this method.
        Specified by:
        getInputQuery in class LexiconFunction
        Parameters:
        nsCol - alias-URI pairs of namespace specs
        start - start of the split
        count - count of the split
        Returns:
        input query.
      • main

        public static void main​(String[] args)