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

FilteredDocIdSet.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 FILTEREDDOCIDSET_H
8 #define FILTEREDDOCIDSET_H
9
10 #include "DocIdSet.h"
11
12 namespace Lucene {
13
23 class LPPAPI FilteredDocIdSet : public DocIdSet {
24 public:
26 FilteredDocIdSet(const DocIdSetPtr& innerSet);
27 virtual ~FilteredDocIdSet();
28
29 LUCENE_CLASS(FilteredDocIdSet);
30
31 protected:
32 DocIdSetPtr innerSet;
33
34 public:
36 virtual bool isCacheable();
37
41 virtual DocIdSetIteratorPtr iterator();
42
43 protected:
47 virtual bool match(int32_t docid) = 0;
48
49 friend class DefaultFilteredDocIdSetIterator;
50 };
51
52 }
53
54 #endif
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition: LuceneTypes.h:323
Lucene::FilteredDocIdSet
Abstract decorator class for a DocIdSet implementation that provides on-demand filtering/validation m...
Definition: FilteredDocIdSet.h:23
DocIdSet.h
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition: LuceneTypes.h:324
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::DocIdSet
A DocIdSet contains a set of doc ids. Implementing classes must only implement iterator to provide ac...
Definition: DocIdSet.h:16

clucene.sourceforge.net