public final class LongRange extends Range
| Modifier and Type | Field and Description |
|---|---|
long |
max
Maximum (inclusive).
|
long |
min
Minimum (inclusive).
|
| Constructor and Description |
|---|
LongRange(java.lang.String label,
long minIn,
boolean minInclusive,
long maxIn,
boolean maxInclusive)
Create a LongRange.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(long value)
True if this range accepts the provided value.
|
boolean |
equals(java.lang.Object _that) |
Query |
getQuery(Query fastMatchQuery,
LongValuesSource valueSource)
Create a Query that matches documents in this range
The query will check all documents that match the provided match query,
or every document in the index if the match query is null.
|
int |
hashCode() |
java.lang.String |
toString() |
failNoMatchpublic final long min
public final long max
public LongRange(java.lang.String label,
long minIn,
boolean minInclusive,
long maxIn,
boolean maxInclusive)
public boolean accept(long value)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object _that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Query getQuery(Query fastMatchQuery,
LongValuesSource valueSource)
org.apache.lucene.search.PointRangeQueryfastMatchQuery - a query to use as a filtervalueSource - the source of values for the range checkData In Motion GmbH all rights reserved