com.atlassian.confluence.search.contentnames.lucene.mappers
Class ContentTypeCategoryMapperFactory

java.lang.Object
  extended by com.atlassian.confluence.search.contentnames.lucene.mappers.ContentTypeCategoryMapperFactory
All Implemented Interfaces:
CategoryMapperFactory

public class ContentTypeCategoryMapperFactory
extends java.lang.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.
 
Constructor Summary
ContentTypeCategoryMapperFactory()
           
 
Method Summary
 CategoryMapper getCategoryMapper(org.apache.lucene.index.AtomicReaderContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

ContentTypeCategoryMapperFactory

public ContentTypeCategoryMapperFactory()
Method Detail

getCategoryMapper

public CategoryMapper getCategoryMapper(org.apache.lucene.index.AtomicReaderContext context)
Specified by:
getCategoryMapper in interface CategoryMapperFactory


Copyright © 2003-2014 Atlassian. All Rights Reserved.