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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

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
10 #include "FormatPostingsDocsConsumer.h"
11
12 namespace Lucene
13 {
15 class FormatPostingsDocsWriter : public FormatPostingsDocsConsumer
16 {
17 public:
18 FormatPostingsDocsWriter(SegmentWriteStatePtr state, FormatPostingsTermsWriterPtr parent);
19 virtual ~FormatPostingsDocsWriter();
20
21 LUCENE_CLASS(FormatPostingsDocsWriter);
22
23 public:
24 IndexOutputPtr out;
25 FormatPostingsTermsWriterWeakPtr _parent;
26 SegmentWriteStatePtr state;
27 FormatPostingsPositionsWriterPtr posWriter;
28 DefaultSkipListWriterPtr skipListWriter;
29 int32_t skipInterval;
30 int32_t totalNumDocs;
31
32 bool omitTermFreqAndPositions;
33 bool storePayloads;
34 int64_t freqStart;
35 FieldInfoPtr fieldInfo;
36
37 int32_t lastDocID;
38 int32_t df;
39
40 TermInfoPtr termInfo; // minimize consing
41 UTF8ResultPtr utf8;
42
43 public:
44 virtual void initialize();
45
46 void setField(FieldInfoPtr fieldInfo);
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