7#ifndef CACHINGTOKENFILTER_H
8#define CACHINGTOKENFILTER_H
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
This class can be used if the token attributes of a TokenStream are intended to be consumed more than...
Definition CachingTokenFilter.h:19
virtual ~CachingTokenFilter()
virtual void reset()
Reset the filter as well as the input TokenStream.
virtual void end()
Performs end-of-stream operations, if any, and calls then end() on the input TokenStream....
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
Collection< AttributeSourceStatePtr > cache
Definition CachingTokenFilter.h:27
AttributeSourceStatePtr finalState
Definition CachingTokenFilter.h:29
Collection< AttributeSourceStatePtr >::iterator iterator
Definition CachingTokenFilter.h:28
CachingTokenFilter(const TokenStreamPtr &input)
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
collection_type::iterator iterator
Definition Collection.h:22
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition TokenFilter.h:18
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63
boost::shared_ptr< AttributeSourceState > AttributeSourceStatePtr
Definition LuceneTypes.h:521