Class RangeOrdToLabel
- java.lang.Object
-
- org.apache.lucene.sandbox.facet.labels.RangeOrdToLabel
-
- All Implemented Interfaces:
OrdToLabel
public class RangeOrdToLabel extends Object implements OrdToLabel
OrdToLabelfor ranges.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description RangeOrdToLabel(Range[] inputRanges)Constructor that takes array of Range objects as input
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetLabelgetLabel(int ordinal)get label of one ord TODO: what do we return when ordinal is not valid? null?FacetLabel[]getLabels(int[] ordinals)get labels for multiple ords
-
-
-
Constructor Detail
-
RangeOrdToLabel
public RangeOrdToLabel(Range[] inputRanges)
Constructor that takes array of Range objects as input
-
-
Method Detail
-
getLabel
public FacetLabel getLabel(int ordinal)
Description copied from interface:OrdToLabelget label of one ord TODO: what do we return when ordinal is not valid? null?- Specified by:
getLabelin interfaceOrdToLabel
-
getLabels
public FacetLabel[] getLabels(int[] ordinals)
Description copied from interface:OrdToLabelget labels for multiple ords- Specified by:
getLabelsin interfaceOrdToLabel
-
-