Class ValuesOrWordsFunction
- java.lang.Object
-
- com.marklogic.mapreduce.functions.LexiconFunction
-
- com.marklogic.mapreduce.functions.ValuesOrWordsFunction
-
- Direct Known Subclasses:
Collections,ElementAttributeValues,ElementAttributeWords,ElementValues,ElementWords,FieldValues,FieldWords,Uris,Values,Words
public abstract class ValuesOrWordsFunction extends LexiconFunction
Super class for wrapper classes for supported values and words lexicon functions, such ascts:element-values.
-
-
Constructor Summary
Constructors Constructor Description ValuesOrWordsFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInputQuery(Collection<String> nsCol, long start, long count)Get the input query used by a record reader.StringgetStart()Get the starting value for the function.static voidmain(String[] args)-
Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction
getLexiconQuery, getUserDefinedOptions
-
-
-
-
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:LexiconFunctionGet the input query used by a record reader. Users must not override this method.- Specified by:
getInputQueryin classLexiconFunction- Parameters:
nsCol- alias-URI pairs of namespace specsstart- start of the splitcount- count of the split- Returns:
- input query.
-
main
public static void main(String[] args)
-
-