Class ElementValues
- java.lang.Object
-
- com.marklogic.mapreduce.functions.LexiconFunction
-
- com.marklogic.mapreduce.functions.ValuesOrWordsFunction
-
- com.marklogic.mapreduce.functions.ElementValues
-
public abstract class ElementValues extends ValuesOrWordsFunction
Wrapper class for thects:element-valueslexicon function. Subclass this class to generate map input based on a lexicon.Use this class with
ValueInputFormat.To generate map input using the lexicon function, create a subclass of this class and provide implementations of the methods that correspond to the function parameters you want to include in the call.
For details, see "Using a Lexicon to Generate Key-Value Pairs" in the MarkLogic Connector for Hadoop Developer's Guide.
-
-
Constructor Summary
Constructors Constructor Description ElementValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String[]getElementNames()Get the value of the $element-names parameter to the lexicon function call, as an array of element QName strings.-
Methods inherited from class com.marklogic.mapreduce.functions.ValuesOrWordsFunction
getInputQuery, getStart, main
-
Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction
getLexiconQuery, getUserDefinedOptions
-
-
-
-
Method Detail
-
getElementNames
public abstract String[] getElementNames()
Get the value of the $element-names parameter to the lexicon function call, as an array of element QName strings.Each string in the array must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")".
- Returns:
- an array of element QNames.
-
-