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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Collector.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 COLLECTOR_H
8 #define COLLECTOR_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
100  class LPPAPI Collector : public LuceneObject
101  {
102  public:
103  virtual ~Collector();
105 
106  public:
110  virtual void setScorer(ScorerPtr scorer) = 0;
111 
117  virtual void collect(int32_t doc) = 0;
118 
124  virtual void setNextReader(IndexReaderPtr reader, int32_t docBase) = 0;
125 
134  virtual bool acceptsDocsOutOfOrder() = 0;
135  };
136 }
137 
138 #endif

clucene.sourceforge.net