Closeable
, AutoCloseable
public class EnhancementsCategoryTokenizer extends CategoryTokenizer
CategoryEnhancement
s defined in the given
EnhancementsIndexingParams
.Modifier and Type | Field | Description |
---|---|---|
protected byte[][] |
enhancementBytes |
Buffers for enhancement payload bytes
|
protected List<CategoryEnhancement> |
enhancements |
The category enhancements to handle
|
protected byte[] |
payloadBytes |
The data buffer used for payload instance.
|
categoryAttribute, indexingParams, payload, payloadAttribute, termAttribute
Constructor | Description |
---|---|
EnhancementsCategoryTokenizer(org.apache.lucene.analysis.TokenStream input,
EnhancementsIndexingParams indexingParams) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
setPayload() |
Set the payload of the current category token.
|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
incrementToken
protected byte[] payloadBytes
protected List<CategoryEnhancement> enhancements
protected byte[][] enhancementBytes
public EnhancementsCategoryTokenizer(org.apache.lucene.analysis.TokenStream input, EnhancementsIndexingParams indexingParams) throws IOException
input
- The stream of category tokens.indexingParams
- The indexing params to use.IOException
protected void setPayload()
CategoryTokenizer
setPayload
in class CategoryTokenizer
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.