Class ElemAttrValueCooccurrences
- java.lang.Object
-
- com.marklogic.mapreduce.functions.LexiconFunction
-
- com.marklogic.mapreduce.functions.CooccurrencesFunction
-
- com.marklogic.mapreduce.functions.ElemAttrValueCooccurrences
-
public abstract class ElemAttrValueCooccurrences extends CooccurrencesFunction
Wrapper class for thects:element-attribute-value-co-occurrenceslexicon function. Subclass this class to generate map input based on a lexicon.Use this class with
KeyValueInputFormatorValueInputFormat.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. For an example, see
LinkCountCooccurrences.All co-occurrences functions using this API do NOT preserve frequency order even if "frequency-order" option is specified.
-
-
Constructor Summary
Constructors Constructor Description ElemAttrValueCooccurrences()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName1()Get the value for the $attribute-name-1 parameter to the lexicon function call, as a string.StringgetAttributeName2()Get the value for the $attribute-name-2 parameter to the lexicon function call, as a string.abstract StringgetElementName1()Get the value for the $element-name-1 parameter to the lexicon function call, as a string.abstract StringgetElementName2()Get the value for the $element-name-2 parameter to the lexicon function call, as a string.-
Methods inherited from class com.marklogic.mapreduce.functions.CooccurrencesFunction
getInputQuery
-
Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction
getLexiconQuery, getUserDefinedOptions
-
-
-
-
Method Detail
-
getElementName1
public abstract String getElementName1()
Get the value for the $element-name-1 parameter to the lexicon function call, as a string. The returned string must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")".- Returns:
- first element QName.
-
getAttributeName1
public String getAttributeName1()
Get the value for the $attribute-name-1 parameter to the lexicon function call, as a string.The returned string must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")". Returning the empty sequence ("()") specifies an element sequence.
- Returns:
- second attribute QName.
-
getElementName2
public abstract String getElementName2()
Get the value for the $element-name-2 parameter to the lexicon function call, as a string. The returned string must evaluate to an xs:QName when evaluated as XQuery For example: "xs:QName(\"wp:a\")".- Returns:
- second element QName.
-
getAttributeName2
public String getAttributeName2()
Get the value for the $attribute-name-2 parameter to the lexicon function call, as a string.The returned string must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")". Returning the empty sequence ("()") specifies an element sequence.
- Returns:
- second attribute QName.
-
-