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

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
14 class InvertedDocConsumerPerField : public LuceneObject {
15 public:
16 virtual ~InvertedDocConsumerPerField();
17
18 LUCENE_CLASS(InvertedDocConsumerPerField);
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
Lucene::InvertedDocConsumerPerField::start
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...
Lucene::InvertedDocConsumerPerField::add
virtual void add()=0
Called once per inverted token.
LuceneObject.h
Lucene::InvertedDocConsumerPerField::~InvertedDocConsumerPerField
virtual ~InvertedDocConsumerPerField()
Lucene::InvertedDocConsumerPerField::abort
virtual void abort()=0
Called on hitting an aborting exception.
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::InvertedDocConsumerPerField::finish
virtual void finish()=0
Called once per field per document, after all Fieldable occurrences are inverted. ...
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FieldablePtr
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
Lucene::InvertedDocConsumerPerField
Definition: InvertedDocConsumerPerField.h:14
Lucene::Collection< FieldablePtr >

clucene.sourceforge.net