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.
|
Modifier and Type | Method and Description |
---|---|
abstract FacetLabel |
TaxonomyReader.getPath(int ordinal)
Returns the path name of the category with the given ordinal.
|
FacetLabel |
FacetLabel.subpath(int length)
Returns a sub-path of this path up to
length components. |
Modifier and Type | Method and Description |
---|---|
int |
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 another
FacetLabel for lexicographic
order. |
abstract int |
TaxonomyReader.getOrdinal(FacetLabel categoryPath)
Returns the ordinal of the category given as a path.
|
Modifier and Type | Method and Description |
---|---|
FacetLabel |
DirectoryTaxonomyReader.getPath(int ordinal) |
Modifier and Type | Method and Description |
---|---|
int |
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) |
Modifier and Type | Method and Description |
---|---|
abstract void |
LabelToOrdinal.addLabel(FacetLabel label,
int ordinal)
Adds a new label if its not yet in the table.
|
void |
CompactLabelToOrdinal.addLabel(FacetLabel label,
int ordinal) |
int |
CollisionMap.addLabel(FacetLabel label,
int hash,
int cid)
Add another mapping.
|
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 |
Cl2oTaxonomyWriterCache.get(FacetLabel categoryPath) |
int |
LruTaxonomyWriterCache.get(FacetLabel categoryPath) |
int |
CollisionMap.get(FacetLabel label,
int hash)
Return the mapping, or
LabelToOrdinal.INVALID_ORDINAL if the label isn't
recognized. |
abstract int |
LabelToOrdinal.getOrdinal(FacetLabel label)
Returns the ordinal assigned to the given label,
or
LabelToOrdinal.INVALID_ORDINAL if the label cannot be found in this table. |
int |
CompactLabelToOrdinal.getOrdinal(FacetLabel label) |
boolean |
TaxonomyWriterCache.put(FacetLabel categoryPath,
int ordinal)
Add a category to the cache, with the given ordinal as the value.
|
boolean |
Cl2oTaxonomyWriterCache.put(FacetLabel categoryPath,
int ordinal) |
boolean |
LruTaxonomyWriterCache.put(FacetLabel categoryPath,
int ordinal) |
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.