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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ScoreCachingWrappingScorer.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 SCORECACHINGWRAPPINGSCORER_H
8 #define SCORECACHINGWRAPPINGSCORER_H
9
10 #include "Scorer.h"
11
12 namespace Lucene
13 {
22 class LPPAPI ScoreCachingWrappingScorer : public Scorer
23 {
24 public:
26 ScoreCachingWrappingScorer(ScorerPtr scorer);
27 virtual ~ScoreCachingWrappingScorer();
28
29 LUCENE_CLASS(ScoreCachingWrappingScorer);
30
31 protected:
32 ScorerWeakPtr _scorer;
33 int32_t curDoc;
34 double curScore;
35
36 public:
37 SimilarityPtr getSimilarity();
38 virtual double score();
39 virtual int32_t docID();
40 virtual int32_t nextDoc();
41 virtual void score(CollectorPtr collector);
42 virtual int32_t advance(int32_t target);
43
44 protected:
45 virtual bool score(CollectorPtr collector, int32_t max, int32_t firstDocID);
46 };
47 }
48
49 #endif

clucene.sourceforge.net