Interface LabelToOrd
- All Known Implementing Classes:
TaxonomyOrdLabelBiMap
public interface LabelToOrd
Label to ord mapping interface.
TODO: move FacetLabel out of taxonomy folder to use it for any facets, not just taxonomy?
TODO: there is some overlap with LabelToOrdinal
, can we reuse something?
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Ordinal to return if facet label doesn't exist ingetOrd(FacetLabel)
andgetOrds(FacetLabel[])
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrd
(FacetLabel label) get ord for one labelint[]
getOrds
(FacetLabel[] labels) get ords for multiple labels
-
Field Details
-
INVALID_ORD
static final int INVALID_ORDOrdinal to return if facet label doesn't exist ingetOrd(FacetLabel)
andgetOrds(FacetLabel[])
- See Also:
-
-
Method Details
-
getOrd
get ord for one label- Throws:
IOException
-
getOrds
get ords for multiple labels- Throws:
IOException
-