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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BooleanClause.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 BOOLEANCLAUSE_H
8 #define BOOLEANCLAUSE_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
15  class LPPAPI BooleanClause : public LuceneObject
16  {
17  public:
19  enum Occur
20  {
22  MUST,
23 
28 
31  MUST_NOT
32  };
33 
34  public:
35  BooleanClause(QueryPtr query, Occur occur);
36  virtual ~BooleanClause();
37 
39 
40  protected:
42  QueryPtr query;
44 
45  public:
46  Occur getOccur();
47  void setOccur(Occur occur);
48 
49  QueryPtr getQuery();
50  void setQuery(QueryPtr query);
51 
52  bool isProhibited();
53  bool isRequired();
54 
55  virtual bool equals(LuceneObjectPtr other);
56  virtual int32_t hashCode();
57  virtual String toString();
58  };
59 }
60 
61 #endif

clucene.sourceforge.net