public final class LongRange extends Range
Modifier and Type | Field and Description |
---|---|
long |
max
Maximum (inclusive).
|
long |
min
Minimum (inclusive).
|
Constructor and Description |
---|
LongRange(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(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() |
String |
toString() |
failNoMatch
public final long min
public final long max
public LongRange(String label, long minIn, boolean minInclusive, long maxIn, boolean maxInclusive)
public boolean accept(long value)
public Query getQuery(Query fastMatchQuery, LongValuesSource valueSource)
PointRangeQuery
fastMatchQuery
- a query to use as a filtervalueSource
- the source of values for the range checkCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.