Interface OrdToLabel
-
- All Known Implementing Classes:
LongValueFacetCutter,RangeOrdToLabel,TaxonomyOrdLabelBiMap
public interface OrdToLabelOrdinal to label mapping interface.TODO: move FacetLabel out of taxonomy folder to use it for any facets, not just taxonomy?
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
getLabel
FacetLabel getLabel(int ordinal) throws IOException
get label of one ord TODO: what do we return when ordinal is not valid? null?- Throws:
IOException
-
getLabels
FacetLabel[] getLabels(int[] ordinals) throws IOException
get labels for multiple ords- Throws:
IOException
-
-