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
FieldSelector.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 FIELDSELECTOR_H
8 #define FIELDSELECTOR_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
16 class LPPAPI FieldSelector : public LuceneObject
17 {
18 protected:
19 FieldSelector();
20
21 public:
22 virtual ~FieldSelector();
23
24 LUCENE_CLASS(FieldSelector);
25
26 public:
28 enum FieldSelectorResult
29 {
31 SELECTOR_NULL,
32
37 SELECTOR_LOAD,
38
44 SELECTOR_LAZY_LOAD,
45
49 SELECTOR_NO_LOAD,
50
56 SELECTOR_LOAD_AND_BREAK,
57
62 SELECTOR_SIZE,
63
66 SELECTOR_SIZE_AND_BREAK
67 };
68
69 public:
70 virtual FieldSelectorResult accept(const String& fieldName) = 0;
71 };
72 }
73
74 #endif

clucene.sourceforge.net