Package org.apache.lucene.facet.range
Class LongRange
java.lang.Object
org.apache.lucene.facet.range.Range
org.apache.lucene.facet.range.LongRange
Represents a range over long values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longMaximum.final booleanTrue if the maximum value is inclusive.final longMinimum.final booleanTrue if the minimum value is inclusive. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
min
public final long minMinimum. -
max
public final long maxMaximum. -
minInclusive
public final boolean minInclusiveTrue if the minimum value is inclusive. -
maxInclusive
public final boolean maxInclusiveTrue if the maximum value is inclusive.
-
-
Constructor Details
-
LongRange
Create a LongRange.
-
-
Method Details
-
accept
public boolean accept(long value) True if this range accepts the provided value. -
toString
-
getFilter
Description copied from class:RangeReturns a newFilteraccepting only documents in this range. This filter is not general-purpose; you should either use it withDrillSidewaysby adding it toDrillDownQuery.add(java.lang.String, java.lang.String...), or pass it toFilteredQueryusing itsFilteredQuery.QUERY_FIRST_FILTER_STRATEGY. If theValueSourceis static, e.g. an indexed numeric field, then it may be more efficient to useNumericRangeFilter. 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.
-