Closeable, AutoCloseablepublic class EnhancementsCategoryTokenizer extends CategoryTokenizer
CategoryEnhancements 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, toStringincrementTokenprotected 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.IOExceptionprotected void setPayload()
CategoryTokenizersetPayload in class CategoryTokenizerCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.