|
MarkLogic Connector for Hadoop 1.1-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.marklogic.mapreduce.functions.LexiconFunction
com.marklogic.mapreduce.functions.ValuesOrWordsFunction
public abstract class ValuesOrWordsFunction
Super class for wrapper classes for supported values and words
lexicon functions, such as cts:element-values.
| Constructor Summary | |
|---|---|
ValuesOrWordsFunction()
|
|
| Method Summary | |
|---|---|
String |
getInputQuery(Collection<String> nsCol,
long start,
long count)
Get the input query used by a record reader. |
String |
getStart()
Get the starting value for the function. |
| Methods inherited from class com.marklogic.mapreduce.functions.LexiconFunction |
|---|
getLexiconQuery, getUserDefinedOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValuesOrWordsFunction()
| Method Detail |
|---|
public String getStart()
This method corresponds to the $start parameter value of a lexicon function. Override the method to specify a lexicon starting position other than the default.
The returned value must have the expected type when evaluated as XQuery. Therefore, if the data type of the start value is xs:string, the returned string must include escaped double quotes. For example, if the start value should be the string "foo" in XQuery, return "\"foo\"".
public String getInputQuery(Collection<String> nsCol,
long start,
long count)
LexiconFunction
getInputQuery in class LexiconFunctionnsCol - alias-URI pairs of namespace specsstart - start of the splitcount - count of the split
|
MarkLogic Connector for Hadoop 1.1-3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com