public static class QueryOptions.QueryCustom extends QueryOptions.FacetableConstraintConfiguration implements TermOptions, ConstraintSource, Annotatable<QueryOptions.QueryCustom>
Constructor and Description |
---|
QueryCustom(boolean doFacets)
Constructor for the custom constraint.
|
QueryCustom(boolean doFacets,
QueryOptions.XQueryExtension parseExtension)
Constructor for the custom constraint.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions.QueryCustom |
annotate(String xmlString)
Adds an annotation, returning this custom constraint.
|
List<QueryOptions.QueryAnnotation> |
getAnnotations()
Gets the annotations on this custom constraint.
|
QueryOptions.XQueryExtension |
getFinishFacet()
Returns the XQuery function called to finish the facet.
|
QueryOptions.XQueryExtension |
getParse()
Returns the XQuery function called to implement the custom constraint.
|
QueryOptions.XQueryExtension |
getStartFacet()
Returns the XQuery function called to start the facet.
|
void |
setFinishFacet(QueryOptions.XQueryExtension finishFacet)
Specifies an XQuery function called to finish the facet.
|
void |
setParse(QueryOptions.XQueryExtension parse)
Specifies an XQuery function called to implement the custom constraint.
|
void |
setStartFacet(QueryOptions.XQueryExtension startFacet)
Specifies an XQuery function called to start the facet.
|
addFacetOption, doFacets, getCollation, getDoFacets, getFacetOptions, getType, setCollation, setDoFacets, setFacetOptions, setType
addTermOption, getAttribute, getElement, getFieldName, getFragmentScope, getJsonKeyName, getPath, getPathIndex, getPathNamespaceBindings, getTermOptions, getWeight, setAttribute, setElement, setField, setFragmentScope, setJsonKey, setPath, setTermOptions, setWeight
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTermOptions, getWeight, setTermOptions, setWeight
public QueryCustom(boolean doFacets)
doFacets
- whether to build a facet on the custom constraintpublic QueryCustom(boolean doFacets, QueryOptions.XQueryExtension parseExtension)
doFacets
- whether to build a facet on the custom constraintparseExtension
- the identification of the XQuery function that implements the custom constraintpublic List<QueryOptions.QueryAnnotation> getAnnotations()
getAnnotations
in interface Annotatable<QueryOptions.QueryCustom>
public QueryOptions.QueryCustom annotate(String xmlString)
annotate
in interface Annotatable<QueryOptions.QueryCustom>
public QueryOptions.XQueryExtension getFinishFacet()
public QueryOptions.XQueryExtension getParse()
public QueryOptions.XQueryExtension getStartFacet()
public void setFinishFacet(QueryOptions.XQueryExtension finishFacet)
finishFacet
- the identification of the XQuery functionpublic void setParse(QueryOptions.XQueryExtension parse)
parse
- the identification of the XQuery functionpublic void setStartFacet(QueryOptions.XQueryExtension startFacet)
startFacet
- the identification of the XQuery functionCopyright © 2013-2016 MarkLogic Corporation.