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


SetBasedFieldSelector.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 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 SETBASEDFIELDSELECTOR_H
8 #define SETBASEDFIELDSELECTOR_H
9 
10 #include "FieldSelector.h"
11 
12 namespace Lucene {
13 
15 class LPPAPI SetBasedFieldSelector : public FieldSelector {
16 public:
21  SetBasedFieldSelector(HashSet<String> fieldsToLoad, HashSet<String> lazyFieldsToLoad);
22 
24 
26 
27 protected:
30 
31 public:
37  virtual FieldSelectorResult accept(const String& fieldName);
38 };
39 
40 }
41 
42 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::FieldSelector::FieldSelectorResult
FieldSelectorResult
Provides information about what should be done with this Field.
Definition: FieldSelector.h:27
FieldSelector.h
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SetBasedFieldSelector::fieldsToLoad
HashSet< String > fieldsToLoad
Definition: SetBasedFieldSelector.h:25
Lucene::HashSet< String >
Lucene::FieldSelector
The FieldSelector allows one to make decisions about what Fields get loaded on a Document by IndexRea...
Definition: FieldSelector.h:16
Lucene::SetBasedFieldSelector::SetBasedFieldSelector
SetBasedFieldSelector(HashSet< String > fieldsToLoad, HashSet< String > lazyFieldsToLoad)
Pass in the Set of Field names to load and the Set of Field names to load lazily. If both are null,...
Lucene::SetBasedFieldSelector::~SetBasedFieldSelector
virtual ~SetBasedFieldSelector()
Lucene::SetBasedFieldSelector::lazyFieldsToLoad
HashSet< String > lazyFieldsToLoad
Definition: SetBasedFieldSelector.h:29
Lucene::SetBasedFieldSelector::accept
virtual FieldSelectorResult accept(const String &fieldName)
Indicate whether to load the field with the given name or not. If the Field#name() is not in either o...
Lucene::SetBasedFieldSelector
Declare what fields to load normally and what fields to load lazily.
Definition: SetBasedFieldSelector.h:15

clucene.sourceforge.net