com.atlassian.confluence.search.contentnames.lucene.mappers
Class ContentTypeCategoryMapperFactory
java.lang.Object
com.atlassian.confluence.search.contentnames.lucene.mappers.ContentTypeCategoryMapperFactory
- All Implemented Interfaces:
- CategoryMapperFactory
public class ContentTypeCategoryMapperFactory
- extends Object
- implements CategoryMapperFactory
A factory implementation that will return CategoryMapper
instances which have
an already created cache of content types for the index.
Field Summary |
static org.apache.lucene.search.FieldCache.ByteParser |
BYTE_PARSER
Parser responsible for converting content type string values into their byte equivalents for storage in memory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BYTE_PARSER
public static final org.apache.lucene.search.FieldCache.ByteParser BYTE_PARSER
- Parser responsible for converting content type string values into their byte equivalents for storage in memory.
Maintaining an array of bytes in memory is cheaper than maintaing an array of strings. We are using a static
instance of this parser because
FieldCache
is keyed with a combination of the
index reader and the byte parser.
ContentTypeCategoryMapperFactory
public ContentTypeCategoryMapperFactory()
getCategoryMapper
public CategoryMapper getCategoryMapper(org.apache.lucene.index.AtomicReaderContext context)
- Specified by:
getCategoryMapper
in interface CategoryMapperFactory
Copyright © 2003–2015 Atlassian. All rights reserved.