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
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
DocIdSet.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::DocIdSet
A DocIdSet contains a set of doc ids. Implementing classes must only implement iterator to provide ac...
Definition DocIdSet.h:16
Lucene::FilteredDocIdSet::isCacheable
virtual bool isCacheable()
This DocIdSet implementation is cacheable if the inner set is cacheable.
Lucene::FilteredDocIdSet::innerSet
DocIdSetPtr innerSet
Definition FilteredDocIdSet.h:32
Lucene::FilteredDocIdSet::match
virtual bool match(int32_t docid)=0
Validation method to determine whether a docid should be in the result set.
Lucene::FilteredDocIdSet::FilteredDocIdSet
FilteredDocIdSet(const DocIdSetPtr &innerSet)
Lucene::FilteredDocIdSet::iterator
virtual DocIdSetIteratorPtr iterator()
Implementation of the contract to build a DocIdSetIterator.
Lucene::FilteredDocIdSet::DefaultFilteredDocIdSetIterator
friend class DefaultFilteredDocIdSetIterator
Definition FilteredDocIdSet.h:49
Lucene::FilteredDocIdSet::~FilteredDocIdSet
virtual ~FilteredDocIdSet()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition LuceneTypes.h:324
Lucene::DocIdSetPtr
boost::shared_ptr< DocIdSet > DocIdSetPtr
Definition LuceneTypes.h:323

clucene.sourceforge.net