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, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState
protected CategoryAttribute categoryAttribute
public CategoryAttributesStream(Iterable<CategoryAttribute> iterable)
iterable
- Iterable
of CategoryAttribute
, from which
categories are taken.public final boolean incrementToken()
incrementToken
in class TokenStream
public void reset()
reset
in class TokenStream
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.