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

Loading...
Searching...
No Matches
FilteredDocIdSetIterator.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 FILTEREDDOCIDSETITERATOR_H
8#define FILTEREDDOCIDSETITERATOR_H
9
10#include "DocIdSetIterator.h"
11
12 namespace Lucene {
13
16 class LPPAPI FilteredDocIdSetIterator : public DocIdSetIterator {
17 public:
19 FilteredDocIdSetIterator(const DocIdSetIteratorPtr& innerIter);
20 virtual ~FilteredDocIdSetIterator();
21
22 LUCENE_CLASS(FilteredDocIdSetIterator);
23
24 protected:
25 DocIdSetIteratorPtr innerIter;
26 int32_t doc;
27
28 public:
29 virtual int32_t docID();
30 virtual int32_t nextDoc();
31 virtual int32_t advance(int32_t target);
32
33 protected:
38 virtual bool match(int32_t docid) = 0;
39};
40
41}
42
43#endif
DocIdSetIterator.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::DocIdSetIterator
This abstract class defines methods to iterate over a set of non-decreasing doc ids....
Definition DocIdSetIterator.h:17
Lucene::FilteredDocIdSetIterator::match
virtual bool match(int32_t docid)=0
Validation method to determine whether a docid should be in the result set.
Lucene::FilteredDocIdSetIterator::innerIter
DocIdSetIteratorPtr innerIter
Definition FilteredDocIdSetIterator.h:25
Lucene::FilteredDocIdSetIterator::nextDoc
virtual int32_t nextDoc()
Advances to the next document in the set and returns the doc it is currently on, or NO_MORE_DOCS if t...
Lucene::FilteredDocIdSetIterator::doc
int32_t doc
Definition FilteredDocIdSetIterator.h:26
Lucene::FilteredDocIdSetIterator::~FilteredDocIdSetIterator
virtual ~FilteredDocIdSetIterator()
Lucene::FilteredDocIdSetIterator::docID
virtual int32_t docID()
Returns the following:
Lucene::FilteredDocIdSetIterator::FilteredDocIdSetIterator
FilteredDocIdSetIterator(const DocIdSetIteratorPtr &innerIter)
Lucene::FilteredDocIdSetIterator::advance
virtual int32_t advance(int32_t target)
Advances to the first beyond the current whose document number is greater than or equal to target....
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::DocIdSetIteratorPtr
boost::shared_ptr< DocIdSetIterator > DocIdSetIteratorPtr
Definition LuceneTypes.h:324

clucene.sourceforge.net