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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
FormatPostingsDocsWriter.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 FORMATPOSTINGSDOCSWRITER_H
8 #define FORMATPOSTINGSDOCSWRITER_H
9 
11 
12 namespace Lucene
13 {
16  {
17  public:
19  virtual ~FormatPostingsDocsWriter();
20 
22 
23  public:
29  int32_t skipInterval;
30  int32_t totalNumDocs;
31 
34  int64_t freqStart;
36 
37  int32_t lastDocID;
38  int32_t df;
39 
40  TermInfoPtr termInfo; // minimize consing
42 
43  public:
44  virtual void initialize();
45 
47 
49  virtual FormatPostingsPositionsConsumerPtr addDoc(int32_t docID, int32_t termDocFreq);
50 
52  virtual void finish();
53 
54  void close();
55  };
56 }
57 
58 #endif

clucene.sourceforge.net