public class DoubleRangeQuery extends AbstractFieldQuery
Query
testing a double range.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected boolean |
_includeLower
True to include the lower end, false to exclude it.
|
protected boolean |
_includeUpper
True to include the upper end, false to exclude it.
|
protected double |
_lower
The lower end of the double range.
|
protected double |
_upper
The upper end of the double range.
|
_fieldPath
Constructor and Description |
---|
DoubleRangeQuery(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.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
getFieldPath
protected double _lower
protected double _upper
protected boolean _includeLower
protected boolean _includeUpper
public DoubleRangeQuery(String fieldPath, double lower, double upper)
fieldPath
- The field path.lower
- The lower end of the range.upper
- The upper end of the range.public DoubleRangeQuery(String fieldPath, double lower, double upper, boolean includelower, boolean includeTo)
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.public String build() throws QuerySyntaxException
Query
QuerySyntaxException
- if the query can't be built because of a syntax error.public int hashCode()
hashCode
in class AbstractFieldQuery
public boolean equals(Object obj)
equals
in class AbstractFieldQuery