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 
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 FORMATPOSTINGSDOCSWRITER_H
8 #define FORMATPOSTINGSDOCSWRITER_H
9 
11 
12 namespace Lucene {
13 
16 public:
18  virtual ~FormatPostingsDocsWriter();
19 
21 
22 public:
28  int32_t skipInterval;
29  int32_t totalNumDocs;
30 
33  int64_t freqStart;
35 
36  int32_t lastDocID;
37  int32_t df;
38 
39  TermInfoPtr termInfo; // minimize consing
41 
42 public:
43  virtual void initialize();
44 
45  void setField(const FieldInfoPtr& fieldInfo);
46 
48  virtual FormatPostingsPositionsConsumerPtr addDoc(int32_t docID, int32_t termDocFreq);
49 
51  virtual void finish();
52 
53  void close();
54 };
55 
56 }
57 
58 #endif

clucene.sourceforge.net