Module org.apache.lucene.sandbox
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
.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDoubleRangeFacetCutter
(MultiDoubleValuesSource multiDoubleValuesSource, DoubleRange[] doubleRanges) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateLeafCutter
(LeafReaderContext context) Get cutter for the leaf.private LongRange[]
mapDoubleRangesToSortableLong
(DoubleRange[] doubleRanges) 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
-
Field Details
-
longRangeFacetCutter
-
-
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
-
mapDoubleRangesToSortableLong
-