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


FormatPostingsTermsConsumer.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 FORMATPOSTINGSTERMSCONSUMER_H
8 #define FORMATPOSTINGSTERMSCONSUMER_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
15 public:
17 
19 
20 public:
21  CharArray termBuffer;
22 
23 public:
25  virtual FormatPostingsDocsConsumerPtr addTerm(CharArray text, int32_t start) = 0;
26  virtual FormatPostingsDocsConsumerPtr addTerm(const String& text);
27 
29  virtual void finish() = 0;
30 };
31 
32 }
33 
34 #endif
virtual FormatPostingsDocsConsumerPtr addTerm(CharArray text, int32_t start)=0
Adds a new term in this field.
Definition: FormatPostingsTermsConsumer.h:14
CharArray termBuffer
Definition: FormatPostingsTermsConsumer.h:18
virtual void finish()=0
Called when we are done adding terms to this field.
boost::shared_ptr< FormatPostingsDocsConsumer > FormatPostingsDocsConsumerPtr
Definition: LuceneTypes.h:139
Base class for all Lucene classes.
Definition: LuceneObject.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12

clucene.sourceforge.net