Package org.apache.lucene.facet.facetset
Class DimRange
java.lang.Object
org.apache.lucene.facet.facetset.DimRange
Defines a single range in a
FacetSet
dimension.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DimRange
fromDoubles
(double min, boolean minInclusive, double max, boolean maxInclusive) Creates aDimRange
for the given min and max double values.static DimRange
fromFloats
(float min, boolean minInclusive, float max, boolean maxInclusive) Creates aDimRange
for the given min and max float values.static DimRange
fromLongs
(long min, boolean minInclusive, long max, boolean maxInclusive) Creates aDimRange
for the given min and max long values.
-
Field Details
-
min
public final long minInclusive min -
max
public final long maxInclusive max
-
-
Constructor Details
-
DimRange
public DimRange(long min, long max) Creates a LongRange.- Parameters:
min
- inclusive min value in rangemax
- inclusive max value in range
-
-
Method Details
-
fromLongs
Creates aDimRange
for the given min and max long values. This method is also suitable for int values. -
fromDoubles
public static DimRange fromDoubles(double min, boolean minInclusive, double max, boolean maxInclusive) Creates aDimRange
for the given min and max double values. -
fromFloats
Creates aDimRange
for the given min and max float values.
-