public abstract class ValuesOrWordsFunction extends LexiconFunction
cts:element-values
.Constructor and Description |
---|
ValuesOrWordsFunction() |
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
main(String[] args) |
getLexiconQuery,
getUserDefinedOptions
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 LexiconFunction
nsCol
- alias-URI pairs of namespace specsstart
- start of the splitcount
- count of the splitpublic static void main(String[] args)
Copyright © 2020 MarkLogic
Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server,
XQuery and related components may be found at
developer.marklogic.com