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

FormatPostingsFieldsWriter.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 FORMATPOSTINGSFIELDSWRITER_H
8 #define FORMATPOSTINGSFIELDSWRITER_H
9
10 #include "FormatPostingsFieldsConsumer.h"
11
12 namespace Lucene {
13
14 class FormatPostingsFieldsWriter : public FormatPostingsFieldsConsumer {
15 public:
16 FormatPostingsFieldsWriter(const SegmentWriteStatePtr& state, const FieldInfosPtr& fieldInfos);
17 virtual ~FormatPostingsFieldsWriter();
18
19 LUCENE_CLASS(FormatPostingsFieldsWriter);
20
21 public:
22 DirectoryPtr dir;
23 String segment;
24 TermInfosWriterPtr termsOut;
25 SegmentWriteStatePtr state;
26 FieldInfosPtr fieldInfos;
27 FormatPostingsTermsWriterPtr termsWriter;
28 DefaultSkipListWriterPtr skipListWriter;
29 int32_t totalNumDocs;
30
31 public:
32 virtual void initialize();
33
35 virtual FormatPostingsTermsConsumerPtr addField(const FieldInfoPtr& field);
36
38 virtual void finish();
39 };
40
41 }
42
43 #endif
Lucene::FormatPostingsFieldsWriter::finish
virtual void finish()
Called when we are done adding everything.
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::DefaultSkipListWriterPtr
boost::shared_ptr< DefaultSkipListWriter > DefaultSkipListWriterPtr
Definition: LuceneTypes.h:104
Lucene::FormatPostingsTermsConsumerPtr
boost::shared_ptr< FormatPostingsTermsConsumer > FormatPostingsTermsConsumerPtr
Definition: LuceneTypes.h:145
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
Lucene::FormatPostingsFieldsWriter::totalNumDocs
int32_t totalNumDocs
Definition: FormatPostingsFieldsWriter.h:29
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
Lucene::FormatPostingsFieldsWriter::termsOut
TermInfosWriterPtr termsOut
Definition: FormatPostingsFieldsWriter.h:24
Lucene::FormatPostingsFieldsWriter::dir
DirectoryPtr dir
Definition: FormatPostingsFieldsWriter.h:19
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
Lucene::FormatPostingsFieldsWriter::skipListWriter
DefaultSkipListWriterPtr skipListWriter
Definition: FormatPostingsFieldsWriter.h:28
Lucene::FormatPostingsFieldsWriter
Definition: FormatPostingsFieldsWriter.h:14
Lucene::TermInfosWriterPtr
boost::shared_ptr< TermInfosWriter > TermInfosWriterPtr
Definition: LuceneTypes.h:242
Lucene::FormatPostingsFieldsWriter::addField
virtual FormatPostingsTermsConsumerPtr addField(const FieldInfoPtr &field)
Add a new field.
Lucene::FormatPostingsFieldsWriter::state
SegmentWriteStatePtr state
Definition: FormatPostingsFieldsWriter.h:25
Lucene::FormatPostingsFieldsWriter::fieldInfos
FieldInfosPtr fieldInfos
Definition: FormatPostingsFieldsWriter.h:26
Lucene::FormatPostingsFieldsWriter::termsWriter
FormatPostingsTermsWriterPtr termsWriter
Definition: FormatPostingsFieldsWriter.h:27
Lucene::FormatPostingsFieldsWriter::FormatPostingsFieldsWriter
FormatPostingsFieldsWriter(const SegmentWriteStatePtr &state, const FieldInfosPtr &fieldInfos)
FormatPostingsFieldsConsumer.h
Lucene::FormatPostingsTermsWriterPtr
boost::shared_ptr< FormatPostingsTermsWriter > FormatPostingsTermsWriterPtr
Definition: LuceneTypes.h:146
Lucene::DirectoryPtr
boost::shared_ptr< Directory > DirectoryPtr
Definition: LuceneTypes.h:489
Lucene::FormatPostingsFieldsWriter::~FormatPostingsFieldsWriter
virtual ~FormatPostingsFieldsWriter()
Lucene::FormatPostingsFieldsConsumer
Abstract API that consumes terms, doc, freq, prox and payloads postings. Concrete implementations of ...
Definition: FormatPostingsFieldsConsumer.h:16
Lucene::FormatPostingsFieldsWriter::segment
String segment
Definition: FormatPostingsFieldsWriter.h:23
Lucene::FormatPostingsFieldsWriter::initialize
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...

clucene.sourceforge.net