Class DoubleRangeFacetCutter
- java.lang.Object
-
- org.apache.lucene.sandbox.facet.cutters.ranges.DoubleRangeFacetCutter
-
- All Implemented Interfaces:
FacetCutter
public final class DoubleRangeFacetCutter extends Object implements FacetCutter
FacetCutterfor ranges of double values.Based on
DoubleRangeFacetCounts, this class translates double ranges to long ranges usingNumericUtils.doubleToSortableLong(double)and delegates faceting work to aLongRangeFacetCutter.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description DoubleRangeFacetCutter(MultiDoubleValuesSource multiDoubleValuesSource, DoubleRange[] doubleRanges)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafFacetCuttercreateLeafCutter(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 Detail
-
DoubleRangeFacetCutter
public DoubleRangeFacetCutter(MultiDoubleValuesSource multiDoubleValuesSource, DoubleRange[] doubleRanges)
Constructor.
-
-
Method Detail
-
createLeafCutter
public LeafFacetCutter createLeafCutter(LeafReaderContext context) throws IOException
Description copied from interface:FacetCutterGet cutter for the leaf.- Specified by:
createLeafCutterin interfaceFacetCutter- Throws:
IOException
-
-