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, waitMethods 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:FacetCutterGet cutter for the leaf.- Specified by:
createLeafCutterin interfaceFacetCutter- Throws:
IOException
-