public abstract class CategoryTokenizerBase
extends org.apache.lucene.analysis.TokenFilter
CategoryDocumentBuilder. Contains three
attributes: CategoryAttribute, CharTermAttribute and
PayloadAttribute.| Modifier and Type | Field and Description |
|---|---|
protected CategoryAttribute |
categoryAttribute
The stream's category attributes.
|
protected FacetIndexingParams |
indexingParams
Indexing params for creating term text
|
protected org.apache.lucene.index.Payload |
payload
The object used for constructing payloads.
|
protected org.apache.lucene.analysis.tokenattributes.PayloadAttribute |
payloadAttribute
The stream's payload attribute.
|
protected org.apache.lucene.analysis.tokenattributes.CharTermAttribute |
termAttribute
The stream's term attribute.
|
| Constructor and Description |
|---|
CategoryTokenizerBase(org.apache.lucene.analysis.TokenStream input,
FacetIndexingParams indexingParams)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
incrementToken() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringprotected CategoryAttribute categoryAttribute
protected org.apache.lucene.analysis.tokenattributes.PayloadAttribute payloadAttribute
protected org.apache.lucene.analysis.tokenattributes.CharTermAttribute termAttribute
protected org.apache.lucene.index.Payload payload
protected FacetIndexingParams indexingParams
public CategoryTokenizerBase(org.apache.lucene.analysis.TokenStream input,
FacetIndexingParams indexingParams)
input - The input stream, either CategoryParentsStream or an
extension of CategoryTokenizerBase.indexingParams - The indexing params to use.public abstract boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.