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


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

clucene.sourceforge.net