public class CategoryAttributesStream
extends org.apache.lucene.analysis.TokenStream
Iterable of
CategoryAttribute. This stream should then be passed through several
filters (see CategoryParentsStream, CategoryListTokenizer and
CategoryTokenizer) until a token stream is produced that can be
indexed by Lucene.
A CategoryAttributesStream object can be reused for producing more than one
stream. To do that, the user should cause the underlying
Iterablereset() to allow this stream to be used again.
| Modifier and Type | Field and Description |
|---|---|
protected CategoryAttribute |
categoryAttribute |
| Constructor and Description |
|---|
CategoryAttributesStream(Iterable<CategoryAttribute> iterable)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringprotected CategoryAttribute categoryAttribute
public CategoryAttributesStream(Iterable<CategoryAttribute> iterable)
iterable - Iterable of CategoryAttribute, from which
categories are taken.public final boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionpublic void reset()
reset in class org.apache.lucene.analysis.TokenStreamCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.