public abstract static class QueryOptions.FacetableConstraintConfiguration extends QueryOptions.BaseConstraintItem
Constructor and Description |
---|
QueryOptions.FacetableConstraintConfiguration()
Zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFacetOption(String facetOption)
Add a facet option to this constraint type
|
void |
doFacets(Boolean doFacets)
Perform facets on this constraint.
|
String |
getCollation()
Returns the collation for this facetable constraint.
|
Boolean |
getDoFacets()
Return whether this constraint is configured for facets.
|
List<String> |
getFacetOptions()
Get the list of facet options.
|
String |
getType()
Returns the datatype of the facetable constraint.
|
void |
setCollation(String collation)
Specifies the collation for the constraint.
|
void |
setDoFacets(boolean doFacets)
Specifies whether to configure this constraint for facets.
|
void |
setFacetOptions(List<String> facetOptions)
Specifies the list of facet options.
|
void |
setType(String type)
Specifies the datatype for the constraint.
|
addTermOption, getAttribute, getElement, getFieldName, getFragmentScope, getJsonKeyName, getPath, getPathIndex, getPathNamespaceBindings, getTermOptions, getWeight, setAttribute, setElement, setField, setFragmentScope, setJsonKey, setPath, setTermOptions, setWeight
public QueryOptions.FacetableConstraintConfiguration()
public void addFacetOption(String facetOption)
facetOption
- public void doFacets(Boolean doFacets)
doFacets
- set to true to configure facets, false otherwise. This field is nullable because facets are irrelevant in values and tuples configuration.public String getCollation()
public Boolean getDoFacets()
public List<String> getFacetOptions()
public String getType()
public void setCollation(String collation)
collation
- the collationpublic void setDoFacets(boolean doFacets)
doFacets
- true to use the constraint for facetspublic void setFacetOptions(List<String> facetOptions)
facetOptions
- options for faceting on the constraintpublic void setType(String type)
type
- the datatypeCopyright © 2013-2015 MarkLogic Corporation.