Uses of Class
org.apache.lucene.facet.taxonomy.FacetLabel
-
Packages that use FacetLabel Package Description org.apache.lucene.facet.taxonomy Taxonomy of Categories.org.apache.lucene.facet.taxonomy.directory Taxonomy index implementation using on top of a Directory.org.apache.lucene.facet.taxonomy.writercache Improves indexing time by caching a map of CategoryPath to their Ordinal. -
-
Uses of FacetLabel in org.apache.lucene.facet.taxonomy
Methods in org.apache.lucene.facet.taxonomy that return FacetLabel Modifier and Type Method Description FacetLabel[]TaxonomyReader. getBulkPath(int... ordinals)Returns the path names of the list of ordinals associated with different categories.abstract FacetLabelTaxonomyReader. getPath(int ordinal)Returns the path name of the category with the given ordinal.FacetLabelTaxonomyFacetLabels.FacetLabelReader. nextFacetLabel(int docId)FacetLabelTaxonomyFacetLabels.FacetLabelReader. nextFacetLabel(int docId, String facetDimension)Retrieves the nextFacetLabelfor the specifieddocIdunder the requestedfacetDimension, ornullif there are no more.FacetLabelFacetLabel. subpath(int length)Returns a sub-path of this path up tolengthcomponents.Methods in org.apache.lucene.facet.taxonomy with parameters of type FacetLabel Modifier and Type Method Description intTaxonomyWriter. addCategory(FacetLabel categoryPath)addCategory() adds a category with a given path name to the taxonomy, and returns its ordinal.intFacetLabel. compareTo(FacetLabel other)Compares this path with anotherFacetLabelfor lexicographic order.abstract intTaxonomyReader. getOrdinal(FacetLabel categoryPath)Returns the ordinal of the category given as a path. -
Uses of FacetLabel in org.apache.lucene.facet.taxonomy.directory
Methods in org.apache.lucene.facet.taxonomy.directory that return FacetLabel Modifier and Type Method Description FacetLabel[]DirectoryTaxonomyReader. getBulkPath(int... ordinals)Returns an array of FacetLabels for a given array of ordinals.FacetLabelDirectoryTaxonomyReader. getPath(int ordinal)Methods in org.apache.lucene.facet.taxonomy.directory with parameters of type FacetLabel Modifier and Type Method Description intDirectoryTaxonomyWriter. addCategory(FacetLabel categoryPath)protected intDirectoryTaxonomyWriter. 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.intDirectoryTaxonomyReader. getOrdinal(FacetLabel cp)Constructor parameters in org.apache.lucene.facet.taxonomy.directory with type arguments of type FacetLabel Constructor Description DirectoryTaxonomyReader(DirectoryReader indexReader, DirectoryTaxonomyWriter taxoWriter, LRUHashMap<FacetLabel,Integer> ordinalCache, LRUHashMap<Integer,FacetLabel> categoryCache, org.apache.lucene.facet.taxonomy.directory.TaxonomyIndexArrays taxoArrays)Expert: Use this method to explicitly force theDirectoryTaxonomyReaderto use specific parent/children arrays and caches. -
Uses of FacetLabel in org.apache.lucene.facet.taxonomy.writercache
Methods in org.apache.lucene.facet.taxonomy.writercache with parameters of type FacetLabel Modifier and Type Method Description abstract voidLabelToOrdinal. addLabel(FacetLabel label, int ordinal)Adds a new label if it is not yet in the table.intLruTaxonomyWriterCache. get(FacetLabel categoryPath)intTaxonomyWriterCache. get(FacetLabel categoryPath)Lookup a category in the cache, returning its ordinal, or a negative number if the category is not in the cache.intUTF8TaxonomyWriterCache. get(FacetLabel label)abstract intLabelToOrdinal. getOrdinal(FacetLabel label)Returns the ordinal assigned to the given label, orLabelToOrdinal.INVALID_ORDINALif the label cannot be found in this table.booleanLruTaxonomyWriterCache. put(FacetLabel categoryPath, int ordinal)booleanTaxonomyWriterCache. put(FacetLabel categoryPath, int ordinal)Add a category to the cache, with the given ordinal as the value.booleanUTF8TaxonomyWriterCache. put(FacetLabel label, int ord)
-