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 ordsintgetOrd(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:OrdToLabelget label of one ord TODO: what do we return when ordinal is not valid? null?- Specified by:
getLabelin interfaceOrdToLabel- Throws:
IOException
-
getLabels
Description copied from interface:OrdToLabelget labels for multiple ords- Specified by:
getLabelsin interfaceOrdToLabel- Throws:
IOException
-
getOrd
Description copied from interface:LabelToOrdget ord for one label- Specified by:
getOrdin interfaceLabelToOrd- Throws:
IOException
-
getOrds
Description copied from interface:LabelToOrdget ords for multiple labels- Specified by:
getOrdsin interfaceLabelToOrd- Throws:
IOException
-