public final class DoubleRange extends Range
Modifier and Type | Field and Description |
---|---|
double |
max
Maximum (inclusive.
|
double |
min
Minimum (inclusive).
|
Constructor and Description |
---|
DoubleRange(String label,
double minIn,
boolean minInclusive,
double maxIn,
boolean maxInclusive)
Create a DoubleRange.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(double value)
True if this range accepts the provided value.
|
boolean |
equals(Object _that) |
Query |
getQuery(Query fastMatchQuery,
DoubleValuesSource 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 double min
public final double max
public DoubleRange(String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive)
public boolean accept(double value)
public Query getQuery(Query fastMatchQuery, DoubleValuesSource 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.