public final class FacetQueryChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
checkDepth(java.lang.Integer value)
Checks that a facet depth option is valid.
|
static int |
checkDiscoveryLimit(int value)
Checks that a discovery limit is valid.
|
static java.lang.Integer |
checkDiscoveryValueLimit(java.lang.Integer value)
Checks whether discovery value limit option is valid.
|
static java.lang.String |
checkFacetValue(java.lang.String value)
Checks that a value constraint is valid.
|
static SearchParams |
checkValid(SearchParams params)
Checks whether all options related to faceted search are valid.
|
static java.lang.Integer |
checkValueLimit(java.lang.Integer value)
Checks whether a value limit option is valid.
|
public static int checkDiscoveryLimit(int value)
SearchApiLimits.FACET_MAXIMUM_DISCOVERY_LIMIT
.value
- the discovery limit to checkjava.lang.IllegalArgumentException
- if the discovery limit is less than 1 or
greater than SearchApiLimits#FACET_MAXIMUM_DISCOVERY_LIMIT.public static java.lang.String checkFacetValue(java.lang.String value)
SearchApiLimits.MAXIMUM_ATOM_LENGTH
.value
- the value constraint to checkjava.lang.IllegalArgumentException
- if the Value length is less than 1 or
greater than SearchApiLimits#FACET_MAXIMUM_VALUE_LENGTH.public static java.lang.Integer checkDepth(java.lang.Integer value)
SearchApiLimits.FACET_MAXIMUM_DEPTH
.value
- the facet depth option to checkjava.lang.IllegalArgumentException
- if the facet depth option is less than 1 or
greater than SearchApiLimits#FACET_MAXIMUM_DEPTH.public static java.lang.Integer checkDiscoveryValueLimit(java.lang.Integer value)
SearchApiLimits.FACET_MAXIMUM_VALUE_LIMIT
.value
- the discovery value limit to checkjava.lang.IllegalArgumentException
- if the discovery value limit is less than 1 or
greater than SearchApiLimits#FACET_MAXIMUM_VALUE_LIMIT.public static java.lang.Integer checkValueLimit(java.lang.Integer value)
SearchApiLimits.FACET_MAXIMUM_VALUE_LIMIT
.value
- the value limit to checkjava.lang.IllegalArgumentException
- if the value limit is less than 1 or
greater than SearchApiLimits#FACET_MAXIMUM_VALUE_LIMIT.public static SearchParams checkValid(SearchParams params)
params
- the SearchParams to checkjava.lang.IllegalArgumentException
- if some part of the specification is invalid