org.apache.lucene.facet.enhancements
Class EnhancementsCategoryTokenizer
java.lang.Object
org.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
org.apache.lucene.facet.index.streaming.CategoryTokenizerBase
org.apache.lucene.facet.index.streaming.CategoryTokenizer
org.apache.lucene.facet.enhancements.EnhancementsCategoryTokenizer
- All Implemented Interfaces:
- Closeable
public class EnhancementsCategoryTokenizer
- extends CategoryTokenizer
A tokenizer which adds to each category token payload according to the
CategoryEnhancement
s defined in the given
EnhancementsIndexingParams
.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Method Summary |
protected void |
setPayload()
Set the payload of the current category token. |
Methods inherited from class org.apache.lucene.util.AttributeSource |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString |
payloadBytes
protected byte[] payloadBytes
- The data buffer used for payload instance.
enhancements
protected List<CategoryEnhancement> enhancements
- The category enhancements to handle
enhancementBytes
protected byte[][] enhancementBytes
- Buffers for enhancement payload bytes
EnhancementsCategoryTokenizer
public EnhancementsCategoryTokenizer(TokenStream input,
EnhancementsIndexingParams indexingParams)
throws IOException
- Constructor.
- Parameters:
input
- The stream of category tokens.indexingParams
- The indexing params to use.
- Throws:
IOException
setPayload
protected void setPayload()
- Description copied from class:
CategoryTokenizer
- Set the payload of the current category token.
- Overrides:
setPayload
in class CategoryTokenizer