Class LongRangeFactory
java.lang.Object
org.apache.lucene.search.grouping.LongRangeFactory
Groups double values into ranges
-
Constructor Summary
ConstructorDescriptionLongRangeFactory
(long min, long width, long max) Creates a new LongRangeFactory -
Method Summary
-
Constructor Details
-
LongRangeFactory
public LongRangeFactory(long min, long width, long max) Creates a new LongRangeFactory- Parameters:
min
- a minimum value; all longs below this value are grouped into a single rangewidth
- a standard width; all ranges betweenmin
andmax
are this wide, with the exception of the final range which may be up to this width. Ranges are inclusive at the lower end, and exclusive at the upper end.max
- a maximum value; all longs above this value are grouped into a single range
-
-
Method Details
-
getRange
Finds the LongRange that a value should be grouped into- Parameters:
value
- the value to groupreuse
- an existing LongRange object to reuse
-