Uses of Class
org.apache.lucene.facet.taxonomy.FacetLabel
Package
Description
Taxonomy of Categories.
Taxonomy index implementation using on top of a Directory.
Improves indexing time by caching a map of CategoryPath to their Ordinal.
-
Uses of FacetLabel in org.apache.lucene.facet.taxonomy
Modifier and TypeMethodDescriptionTaxonomyReader.getBulkPath
(int... ordinals) Returns the path names of the list of ordinals associated with different categories.abstract FacetLabel
TaxonomyReader.getPath
(int ordinal) Returns the path name of the category with the given ordinal.TaxonomyFacetLabels.FacetLabelReader.nextFacetLabel
(int docId) TaxonomyFacetLabels.FacetLabelReader.nextFacetLabel
(int docId, String facetDimension) Retrieves the nextFacetLabel
for the specifieddocId
under the requestedfacetDimension
, ornull
if there are no more.FacetLabel.subpath
(int length) Returns a sub-path of this path up tolength
components.Modifier and TypeMethodDescriptionint
TaxonomyWriter.addCategory
(FacetLabel categoryPath) addCategory() adds a category with a given path name to the taxonomy, and returns its ordinal.int
FacetLabel.compareTo
(FacetLabel other) Compares this path with anotherFacetLabel
for lexicographic order.abstract int
TaxonomyReader.getOrdinal
(FacetLabel categoryPath) Returns the ordinal of the category given as a path. -
Uses of FacetLabel in org.apache.lucene.facet.taxonomy.directory
Modifier and TypeMethodDescriptionDirectoryTaxonomyReader.getBulkPath
(int... ordinals) Returns an array of FacetLabels for a given array of ordinals.DirectoryTaxonomyReader.getPath
(int ordinal) Modifier and TypeMethodDescriptionint
DirectoryTaxonomyWriter.addCategory
(FacetLabel categoryPath) protected int
DirectoryTaxonomyWriter.findCategory
(FacetLabel categoryPath) Look up the given category in the cache and/or the on-disk storage, returning the category's ordinal, or a negative number in case the category does not yet exist in the taxonomy.int
DirectoryTaxonomyReader.getOrdinal
(FacetLabel cp) -
Uses of FacetLabel in org.apache.lucene.facet.taxonomy.writercache
Modifier and TypeMethodDescriptionabstract void
LabelToOrdinal.addLabel
(FacetLabel label, int ordinal) Adds a new label if it is not yet in the table.int
LruTaxonomyWriterCache.get
(FacetLabel categoryPath) int
TaxonomyWriterCache.get
(FacetLabel categoryPath) Lookup a category in the cache, returning its ordinal, or a negative number if the category is not in the cache.int
UTF8TaxonomyWriterCache.get
(FacetLabel label) abstract int
LabelToOrdinal.getOrdinal
(FacetLabel label) Returns the ordinal assigned to the given label, orLabelToOrdinal.INVALID_ORDINAL
if the label cannot be found in this table.boolean
LruTaxonomyWriterCache.put
(FacetLabel categoryPath, int ordinal) boolean
TaxonomyWriterCache.put
(FacetLabel categoryPath, int ordinal) Add a category to the cache, with the given ordinal as the value.boolean
UTF8TaxonomyWriterCache.put
(FacetLabel label, int ord)