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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PrefixTermEnum.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 PREFIXTERMENUM_H
8 #define PREFIXTERMENUM_H
9 
10 #include "FilteredTermEnum.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI PrefixTermEnum : public FilteredTermEnum {
19 public:
20  PrefixTermEnum(const IndexReaderPtr& reader, const TermPtr& prefix);
21  virtual ~PrefixTermEnum();
22 
24 
25 protected:
26  TermPtr prefix;
27  bool _endEnum;
28 
29 public:
30  virtual double difference();
31 
32 protected:
33  virtual bool endEnum();
34  virtual bool termCompare(const TermPtr& term);
35 
36  TermPtr getPrefixTerm();
37 };
38 
39 }
40 
41 #endif

clucene.sourceforge.net