public abstract class CategoryTokenizerBase extends TokenFilter
CategoryDocumentBuilder
. Contains three
attributes: CategoryAttribute
, CharTermAttribute
and
PayloadAttribute
.AttributeSource.AttributeFactory, AttributeSource.State
Modifier and Type | Field and Description |
---|---|
protected CategoryAttribute |
categoryAttribute
The stream's category attributes.
|
protected FacetIndexingParams |
indexingParams
Indexing params for creating term text
|
protected BytesRef |
payload
The object used for constructing payloads.
|
protected PayloadAttribute |
payloadAttribute
The stream's payload attribute.
|
protected CharTermAttribute |
termAttribute
The stream's term attribute.
|
input
Constructor and Description |
---|
CategoryTokenizerBase(TokenStream input,
FacetIndexingParams indexingParams)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
incrementToken() |
close, end, reset
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState
protected CategoryAttribute categoryAttribute
protected PayloadAttribute payloadAttribute
protected CharTermAttribute termAttribute
protected BytesRef payload
protected FacetIndexingParams indexingParams
public CategoryTokenizerBase(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 TokenStream
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.