|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.facet.range.Range
org.apache.lucene.facet.range.DoubleRange
public final class DoubleRange
Represents a range over double values.
| Field Summary | |
|---|---|
double |
max
Maximum. |
boolean |
maxInclusive
True if the maximum value is inclusive. |
double |
min
Minimum. |
boolean |
minInclusive
True if the minimum value is inclusive. |
| Fields inherited from class org.apache.lucene.facet.range.Range |
|---|
label |
| Constructor Summary | |
|---|---|
DoubleRange(String label,
double minIn,
boolean minInclusive,
double maxIn,
boolean maxInclusive)
Create a DoubleRange. |
|
| Method Summary | |
|---|---|
boolean |
accept(double value)
True if this range accepts the provided value. |
Filter |
getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new Filter accepting only documents
in this range. |
String |
toString()
|
| Methods inherited from class org.apache.lucene.facet.range.Range |
|---|
failNoMatch, getFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final double min
public final double max
public final boolean minInclusive
public final boolean maxInclusive
| Constructor Detail |
|---|
public DoubleRange(String label,
double minIn,
boolean minInclusive,
double maxIn,
boolean maxInclusive)
| Method Detail |
|---|
public boolean accept(double value)
public String toString()
toString in class Object
public Filter getFilter(Filter fastMatchFilter,
ValueSource valueSource)
RangeFilter accepting only documents
in this range. This filter is not general-purpose;
you should either use it with DrillSideways by
adding it to DrillDownQuery.add(java.lang.String, java.lang.String...), or pass it to
FilteredQuery using its FilteredQuery.QUERY_FIRST_FILTER_STRATEGY. If the
ValueSource is static, e.g. an indexed numeric
field, then it may be more efficient to use NumericRangeFilter. The provided fastMatchFilter,
if non-null, will first be consulted, and only if
that is set for each document will the range then be
checked.
getFilter in class Range
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||