public abstract class ElemAttrValueCooccurrences extends CooccurrencesFunction
cts:element-attribute-value-co-occurrences
lexicon
function. Subclass this class to generate map input based on a
lexicon.
Use this class with KeyValueInputFormat
or 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.
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 and Description |
---|
ElemAttrValueCooccurrences() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName1()
Get the value for the $attribute-name-1
parameter to the lexicon function call, as a string.
|
String |
getAttributeName2()
Get the value for the $attribute-name-2
parameter to the lexicon function call, as a string.
|
abstract String |
getElementName1()
Get the value for the $element-name-1 parameter
to the lexicon function call, as a string.
|
abstract String |
getElementName2()
Get the value for the $element-name-2 parameter
to the lexicon function call, as a string.
|
getInputQuery
getLexiconQuery,
getUserDefinedOptions
public abstract String getElementName1()
public String getAttributeName1()
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.
public abstract String getElementName2()
public String getAttributeName2()
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.
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com