Lucene++ - a full-featured, c++ search engine
API Documentation


CachingTokenFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6 
7 #ifndef CACHINGTOKENFILTER_H
8 #define CACHINGTOKENFILTER_H
9 
10 #include "TokenFilter.h"
11 
12 namespace Lucene {
13 
19 class LPPAPI CachingTokenFilter : public TokenFilter {
20 public:
21  CachingTokenFilter(const TokenStreamPtr& input);
22  virtual ~CachingTokenFilter();
23 
25 
26 protected:
30 
31 public:
32  virtual bool incrementToken();
33  virtual void end();
34  virtual void reset();
35 
36 protected:
37  void fillCache();
38 };
39 
40 }
41 
42 #endif
boost::shared_ptr< AttributeSourceState > AttributeSourceStatePtr
Definition: LuceneTypes.h:521
This class can be used if the token attributes of a TokenStream are intended to be consumed more than...
Definition: CachingTokenFilter.h:19
Collection< AttributeSourceStatePtr >::iterator iterator
Definition: CachingTokenFilter.h:28
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition: TokenFilter.h:18
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition: LuceneTypes.h:63
AttributeSourceStatePtr finalState
Definition: CachingTokenFilter.h:29

clucene.sourceforge.net