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

Loading...
Searching...
No Matches
SetBasedFieldSelector.h
Go to the documentation of this file.
1
2// 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
23 virtual ~SetBasedFieldSelector();
24
25 LUCENE_CLASS(SetBasedFieldSelector);
26
27 protected:
28 HashSet<String> fieldsToLoad;
29 HashSet<String> lazyFieldsToLoad;
30
31 public:
37 virtual FieldSelectorResult accept(const String& fieldName);
38};
39
40}
41
42#endif
FieldSelector.h
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
Lucene::FieldSelector::FieldSelector
FieldSelector()
Lucene::HashSet
Utility template class to handle hash set collections that can be safely copied and shared.
Definition HashSet.h:17
Lucene::SetBasedFieldSelector::fieldsToLoad
HashSet< String > fieldsToLoad
Definition SetBasedFieldSelector.h:28
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::lazyFieldsToLoad
HashSet< String > lazyFieldsToLoad
Definition SetBasedFieldSelector.h:29
Lucene::SetBasedFieldSelector::~SetBasedFieldSelector
virtual ~SetBasedFieldSelector()
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
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net