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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
InvertedDocConsumerPerField.h
Go to the documentation of this file.
1 // 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 INVERTEDDOCCONSUMERPERFIELD_H
8 #define INVERTEDDOCCONSUMERPERFIELD_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 public:
17 
19 
20 public:
23  virtual bool start(Collection<FieldablePtr> fields, int32_t count) = 0;
24 
26  virtual void start(const FieldablePtr& field) = 0;
27 
29  virtual void add() = 0;
30 
32  virtual void finish() = 0;
33 
35  virtual void abort() = 0;
36 };
37 
38 }
39 
40 #endif
virtual bool start(Collection< FieldablePtr > fields, int32_t count)=0
Called once per field, and is given all Fieldable occurrences for this field in the document...
virtual void add()=0
Called once per inverted token.
virtual void abort()=0
Called on hitting an aborting exception.
Base class for all Lucene classes.
Definition: LuceneObject.h:31
virtual void finish()=0
Called once per field per document, after all Fieldable occurrences are inverted. ...
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
Definition: InvertedDocConsumerPerField.h:14

clucene.sourceforge.net