public class CategoryAttributesStream extends 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.
AttributeSource.AttributeFactory, AttributeSource.State| 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() |
close, endaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreStateprotected CategoryAttribute categoryAttribute
public CategoryAttributesStream(Iterable<CategoryAttribute> iterable)
iterable - Iterable of CategoryAttribute, from which
categories are taken.public final boolean incrementToken()
incrementToken in class TokenStreampublic void reset()
reset in class TokenStreamCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.