public class ContentTypeCategoryMapper extends Object implements CategoryMapper
Constructor and Description |
---|
ContentTypeCategoryMapper(org.apache.lucene.search.FieldCache.Bytes contentTypeFieldCache) |
Modifier and Type | Method and Description |
---|---|
Category |
getCategory(int docId,
Set<Category> categories)
Returns the
Category that this docId belongs to. |
public ContentTypeCategoryMapper(org.apache.lucene.search.FieldCache.Bytes contentTypeFieldCache)
public Category getCategory(int docId, Set<Category> categories)
CategoryMapper
Category
that this docId belongs to. It
must be one of ones specified in the passed in set of categories.getCategory
in interface CategoryMapper
docId
- the id to find a category forcategories
- confines category mapping to those categories contained in this setCopyright © 2003–2017 Atlassian. All rights reserved.