Class DoubleRangeFacetCutter
java.lang.Object
org.apache.lucene.sandbox.facet.cutters.ranges.DoubleRangeFacetCutter
- All Implemented Interfaces:
FacetCutter
FacetCutter
for ranges of double values.
Based on DoubleRangeFacetCounts
, this class translates double ranges to long ranges
using NumericUtils.doubleToSortableLong(double)
and delegates faceting work to a LongRangeFacetCutter
.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionDoubleRangeFacetCutter
(MultiDoubleValuesSource multiDoubleValuesSource, DoubleRange[] doubleRanges) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateLeafCutter
(LeafReaderContext context) Get cutter for the leaf.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.sandbox.facet.cutters.FacetCutter
getChildrenOrds, getOrdinalsToRollup
-
Constructor Details
-
DoubleRangeFacetCutter
public DoubleRangeFacetCutter(MultiDoubleValuesSource multiDoubleValuesSource, DoubleRange[] doubleRanges) Constructor.
-
-
Method Details
-
createLeafCutter
Description copied from interface:FacetCutter
Get cutter for the leaf.- Specified by:
createLeafCutter
in interfaceFacetCutter
- Throws:
IOException
-