public class LongRangeQuery extends AbstractFieldQuery
Query testing a long 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 long |
_lower
The lower end of the long range.
|
protected long |
_upper
The upper end of the long range.
|
_fieldPath| Constructor and Description |
|---|
LongRangeQuery(String fieldPath,
long lower,
long upper)
Build a long range query.
|
LongRangeQuery(String fieldPath,
long lower,
long upper,
boolean includelower,
boolean includeTo)
Build a long 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() |
getFieldPathprotected long _lower
protected long _upper
protected boolean _includeLower
protected boolean _includeUpper
public LongRangeQuery(String fieldPath, long lower, long upper)
fieldPath - The field path.lower - The lower end of the range.upper - The upper end of the range.public LongRangeQuery(String fieldPath, long lower, long 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
QueryQuerySyntaxException - if the query can't be built because of a syntax error.public int hashCode()
hashCode in class AbstractFieldQuerypublic boolean equals(Object obj)
equals in class AbstractFieldQuery