Class FieldWordMatch
- java.lang.Object
-
- com.marklogic.mapreduce.functions.LexiconFunction
-
- com.marklogic.mapreduce.functions.ValueOrWordMatchFunction
-
- com.marklogic.mapreduce.functions.FieldWordMatch
-
public abstract class FieldWordMatch extends ValueOrWordMatchFunction
Wrapper class for thects:field-word-matchlexicon 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 FieldWordMatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String[]getFieldNames()Get the value of the $field-names parameter to the lexicon function call, as an array of strings.-
Methods inherited from class com.marklogic.mapreduce.functions.ValueOrWordMatchFunction
getInputQuery, getPattern, main
-
Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction
getLexiconQuery, getUserDefinedOptions
-
-
-
-
Method Detail
-
getFieldNames
public abstract String[] getFieldNames()
Get the value of the $field-names parameter to the lexicon function call, as an array of strings. Each string should be a field name.- Returns:
- an array of element QNames.
-
-