public final class LongRange extends Range
Modifier and Type | Field and Description |
---|---|
long |
max
Maximum.
|
boolean |
maxInclusive
True if the maximum value is inclusive.
|
long |
min
Minimum.
|
boolean |
minInclusive
True if the minimum value is 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.
|
Filter |
getFilter(Filter fastMatchFilter,
ValueSource valueSource)
Returns a new
Filter accepting only documents
in this range. |
String |
toString() |
public final long min
public final long max
public final boolean minInclusive
public final boolean maxInclusive
public LongRange(String label, long minIn, boolean minInclusive, long maxIn, boolean maxInclusive)
public boolean accept(long value)
public Filter getFilter(Filter fastMatchFilter, ValueSource valueSource)
Range
Filter
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.Copyright © 2010 - 2020 Adobe. All Rights Reserved