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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermRangeTermEnum.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 TERMRANGETERMENUM_H
8 #define TERMRANGETERMENUM_H
9 
10 #include "FilteredTermEnum.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI TermRangeTermEnum : public FilteredTermEnum {
19 public:
34  TermRangeTermEnum(const IndexReaderPtr& reader, const String& field, StringValue lowerTermText, StringValue upperTermText,
35  bool includeLower, bool includeUpper, const CollatorPtr& collator);
36 
37  virtual ~TermRangeTermEnum();
38 
40 
41 protected:
42  CollatorPtr collator;
43  bool _endEnum;
44  String field;
45  StringValue upperTermText;
46  StringValue lowerTermText;
49 
50 public:
51  virtual double difference();
52 
53 protected:
54  virtual bool endEnum();
55  virtual bool termCompare(const TermPtr& term);
56 };
57 
58 }
59 
60 #endif

clucene.sourceforge.net