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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
40 LUCENE_CLASS(TermRangeTermEnum);
41
42 protected:
43 CollatorPtr collator;
44 bool _endEnum;
45 String field;
46 StringValue upperTermText;
47 StringValue lowerTermText;
48 bool includeLower;
49 bool includeUpper;
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