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 // Copyright (c) 2009-2011 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  {
20  public:
35  TermRangeTermEnum(IndexReaderPtr reader, const String& field, StringValue lowerTermText, StringValue upperTermText,
36  bool includeLower, bool includeUpper, CollatorPtr collator);
37 
38  virtual ~TermRangeTermEnum();
39 
41 
42  protected:
43  CollatorPtr collator;
44  bool _endEnum;
45  String field;
46  StringValue upperTermText;
47  StringValue lowerTermText;
50 
51  public:
52  virtual double difference();
53 
54  protected:
55  virtual bool endEnum();
56  virtual bool termCompare(TermPtr term);
57  };
58 }
59 
60 #endif

clucene.sourceforge.net