Package org.ametys.cms.search.query
Class LongRangeQuery
- All Implemented Interfaces:
Query
Represents a
Query
testing a long range.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator
-
Field Summary
Fields inherited from interface org.ametys.cms.search.query.Query
BOOL_FILTER, BOOL_MUST, BOOL_MUST_NOT, BOOL_SHOULD
-
Constructor Summary
ConstructorsConstructorDescriptionLongRangeQuery
(String fieldPath, long lower, long upper) Build a long range query.LongRangeQuery
(String fieldPath, long lower, long upper, boolean includeLower, boolean includeUpper) Build a long range query. -
Method Summary
Methods inherited from class org.ametys.cms.search.query.AbstractRangeQuery
build, equals, getFieldName, getLowerBound, getUpperBound, hashCode, includeLowerBound, includeUpperBound, lowerBoundForQuery, upperBoundForQuery
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.cms.search.query.Query
buildAsJson, rewrite, toString
-
Constructor Details
-
LongRangeQuery
Build a long range query.- Parameters:
fieldPath
- The field path.lower
- The lower end of the range.upper
- The upper end of the range.
-
LongRangeQuery
public LongRangeQuery(String fieldPath, long lower, long upper, boolean includeLower, boolean includeUpper) Build a long 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.includeUpper
- Whether to include the upper end or not.
-