public abstract class ElementAttributeWordMatch extends ValueOrWordMatchFunction
cts:element-attribute-word-match
lexicon 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 and Description |
---|
ElementAttributeWordMatch() |
Modifier and Type | Method and Description |
---|---|
abstract String[] |
getAttributeNames()
Get the value of the $attribute-names parameter
to the lexicon function call, as an array of attribute QName
strings.
|
abstract String[] |
getElementNames()
Get the value of the $element-names parameter to
the lexicon function call, as an array of element QName
strings.
|
getInputQuery,
getPattern,
main
getLexiconQuery,
getUserDefinedOptions
public abstract String[] getElementNames()
Each string in the array must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")".
public abstract String[] getAttributeNames()
Each string in the array must evaluate to an xs:QName when evaluated as XQuery. For example: "xs:QName(\"wp:a\")".
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com