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


Loading...
Searching...
No Matches
InvertedDocConsumerPerField.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 INVERTEDDOCCONSUMERPERFIELD_H
8#define INVERTEDDOCCONSUMERPERFIELD_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
15public:
17
19
20public:
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
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Definition InvertedDocConsumerPerField.h:14
virtual void start(const FieldablePtr &field)=0
Called before a field instance is being processed.
virtual void finish()=0
Called once per field per document, after all Fieldable occurrences are inverted.
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
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Fieldable > FieldablePtr
Definition LuceneTypes.h:76

clucene.sourceforge.net