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


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

clucene.sourceforge.net