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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FilteredTermEnum.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 FILTEREDTERMENUM_H
8 #define FILTEREDTERMENUM_H
9 
10 #include "TermEnum.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI FilteredTermEnum : public TermEnum {
19 public:
20  virtual ~FilteredTermEnum();
22 
23 protected:
25  TermPtr currentTerm;
26 
29 
30 public:
32  virtual double difference() = 0;
33 
36  virtual int32_t docFreq();
37 
39  virtual bool next();
40 
43  virtual TermPtr term();
44 
46  virtual void close();
47 
48 protected:
50  virtual bool termCompare(const TermPtr& term) = 0;
51 
53  virtual bool endEnum() = 0;
54 
57  virtual void setEnum(const TermEnumPtr& actualEnum);
58 };
59 
60 }
61 
62 #endif

clucene.sourceforge.net