Class ValueOrWordMatchFunction
- java.lang.Object
-
- com.marklogic.mapreduce.functions.LexiconFunction
-
- com.marklogic.mapreduce.functions.ValueOrWordMatchFunction
-
- Direct Known Subclasses:
CollectionMatch,ElementAttributeValueMatch,ElementAttributeWordMatch,ElementValueMatch,ElementWordMatch,FieldValueMatch,FieldWordMatch,UriMatch,ValueMatch,WordMatch
public abstract class ValueOrWordMatchFunction extends LexiconFunction
Super class for wrapper classes for lexicon word and value match functions, such ascts:element-value-matchorcts:field-word-match.
-
-
Constructor Summary
Constructors Constructor Description ValueOrWordMatchFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInputQuery(Collection<String> nsCol, long start, long count)Get the input query used by a record reader.StringgetPattern()Get the value for the $pattern parameter to a lexicon function call.static voidmain(String[] args)-
Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction
getLexiconQuery, getUserDefinedOptions
-
-
-
-
Method Detail
-
getPattern
public String getPattern()
Get the value for the $pattern parameter to a lexicon function call.This method corresponds to the $pattern parameter value of a lexicon function call. Override this function to supply a pattern other than the default.
When evaluated as XQuery, the returned string must resolve to an atomic type matching the type of the lexicon. String patterns may include wildcard characters.
- Returns:
- the pattern to match.
-
getInputQuery
public String getInputQuery(Collection<String> nsCol, long start, long count)
Description copied from class:LexiconFunctionGet the input query used by a record reader. Users must not override this method.- Specified by:
getInputQueryin classLexiconFunction- Parameters:
nsCol- alias-URI pairs of namespace specsstart- start of the splitcount- count of the split- Returns:
- input query.
-
main
public static void main(String[] args)
-
-