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


Loading...
Searching...
No Matches
TokenFilter.h
Go to the documentation of this file.
1
2// 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 TOKENFILTER_H
8#define TOKENFILTER_H
9
10#include "TokenStream.h"
11
12namespace Lucene {
13
18class LPPAPI TokenFilter : public TokenStream {
19protected:
22
23public:
24 virtual ~TokenFilter();
25
27
28protected:
31
32public:
35 virtual void end();
36
38 virtual void close();
39
41 virtual void reset();
42};
43
44}
45
46#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
A TokenFilter is a TokenStream whose input is another TokenStream.
Definition TokenFilter.h:18
virtual void reset()
Reset the filter as well as the input TokenStream.
virtual void close()
Close the input TokenStream.
virtual ~TokenFilter()
virtual void end()
Performs end-of-stream operations, if any, and calls then end() on the input TokenStream....
TokenFilter(const TokenStreamPtr &input)
Construct a token stream filtering the given input.
TokenStreamPtr input
The source of tokens for this filter.
Definition TokenFilter.h:30
A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text.
Definition TokenStream.h:44
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< TokenStream > TokenStreamPtr
Definition LuceneTypes.h:63

clucene.sourceforge.net