Package org.ametys.cms.search.query
Class DoubleRangeQuery
java.lang.Object
org.ametys.cms.search.query.AbstractFieldQuery
org.ametys.cms.search.query.DoubleRangeQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing a double range.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True to include the lower end, false to exclude it.protected boolean
True to include the upper end, false to exclude it.protected double
The lower end of the double range.protected double
The upper end of the double range.Fields inherited from class org.ametys.cms.search.query.AbstractFieldQuery
_fieldPath
-
Constructor Summary
ConstructorDescriptionDoubleRangeQuery
(String fieldPath, double lower, double upper) Build a double range query.DoubleRangeQuery
(String fieldPath, double lower, double upper, boolean includelower, boolean includeTo) Build a double range query. -
Method Summary
Methods inherited from class org.ametys.cms.search.query.AbstractFieldQuery
getFieldPath
-
Field Details
-
_lower
The lower end of the double range. -
_upper
The upper end of the double range. -
_includeLower
True to include the lower end, false to exclude it. -
_includeUpper
True to include the upper end, false to exclude it.
-
-
Constructor Details
-
DoubleRangeQuery
Build a double range query.- Parameters:
fieldPath
- The field path.lower
- The lower end of the range.upper
- The upper end of the range.
-
DoubleRangeQuery
public DoubleRangeQuery(String fieldPath, double lower, double upper, boolean includelower, boolean includeTo) Build a double range query.- Parameters:
fieldPath
- The field path.lower
- The lower end of the range.upper
- The upper end of the range.includelower
- Whether to include the lower end or not.includeTo
- Whether to include the upper end or not.
-
-
Method Details
-
build
Description copied from interface:Query
Build the solr query string representing the Query object.- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
hashCode
- Overrides:
hashCode
in classAbstractFieldQuery
-
equals
- Overrides:
equals
in classAbstractFieldQuery
-