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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WildcardTermEnum.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 WILDCARDTERMENUM_H
8 #define WILDCARDTERMENUM_H
9 
10 #include "FilteredTermEnum.h"
11 
12 namespace Lucene
13 {
18  class LPPAPI WildcardTermEnum : public FilteredTermEnum
19  {
20  public:
26 
27  virtual ~WildcardTermEnum();
28 
30 
31  public:
32  static const wchar_t WILDCARD_STRING;
33  static const wchar_t WILDCARD_CHAR;
34 
36  String field;
37  String text;
38  String pre;
39  int32_t preLen;
40  bool _endEnum;
41 
42  public:
43  virtual double difference();
44 
46  static bool wildcardEquals(const String& pattern, int32_t patternIdx, const String& string, int32_t stringIdx);
47 
48  protected:
49  virtual bool termCompare(TermPtr term);
50  virtual bool endEnum();
51  };
52 }
53 
54 #endif

clucene.sourceforge.net