Class TaxonomyOrdLabelBiMap
java.lang.Object
org.apache.lucene.sandbox.facet.labels.TaxonomyOrdLabelBiMap
- All Implemented Interfaces:
LabelToOrd
,OrdToLabel
Map taxonomy labels to ordinals.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from interface org.apache.lucene.sandbox.facet.labels.LabelToOrd
INVALID_ORD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel
(int ordinal) get label of one ord TODO: what do we return when ordinal is not valid? null?getLabels
(int[] ordinals) get labels for multiple ordsint
getOrd
(FacetLabel label) get ord for one labelint[]
getOrds
(FacetLabel[] labels) get ords for multiple labels
-
Constructor Details
-
TaxonomyOrdLabelBiMap
Construct
-
-
Method Details
-
getLabel
Description copied from interface:OrdToLabel
get label of one ord TODO: what do we return when ordinal is not valid? null?- Specified by:
getLabel
in interfaceOrdToLabel
- Throws:
IOException
-
getLabels
Description copied from interface:OrdToLabel
get labels for multiple ords- Specified by:
getLabels
in interfaceOrdToLabel
- Throws:
IOException
-
getOrd
Description copied from interface:LabelToOrd
get ord for one label- Specified by:
getOrd
in interfaceLabelToOrd
- Throws:
IOException
-
getOrds
Description copied from interface:LabelToOrd
get ords for multiple labels- Specified by:
getOrds
in interfaceLabelToOrd
- Throws:
IOException
-