|
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
public abstract class LexiconFunction
Super class for all supported lexicon functions.
MarkLogicInputFormat and
MarkLogicRecordReader get the input query and
split query from these classes when a lexicon function is specified in the
config by setting
input.lexiconfunctionclass.
| Constructor Summary | |
|---|---|
LexiconFunction()
|
|
| Method Summary | |
|---|---|
abstract String |
getInputQuery(Collection<String> nsCol,
long start,
long count)
Get the input query used by a record reader. |
String |
getLexiconQuery()
Get the cts:query specified by the user as part of the lexicon function to filter fragments used to retrieve the lexicons. |
String[] |
getUserDefinedOptions()
Get user-defined options for the lexicon function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LexiconFunction()
| Method Detail |
|---|
public String getLexiconQuery()
This corresponds to the $query parameter of a lexicon function. Users may override this method if the default is not suitable.
public abstract String getInputQuery(Collection<String> nsCol,
long start,
long count)
nsCol - alias-URI pairs of namespace specsstart - start of the splitcount - count of the split
public String[] getUserDefinedOptions()
This method corresponds to the $options parameter of a lexicon function. Override this method to pass options to the lexicon function. The options skip and truncate are reserved for internal use by the connector.
|
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