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

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

- File List
- Globals

FormatPostingsTermsWriter.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 FORMATPOSTINGSTERMSWRITER_H
8 #define FORMATPOSTINGSTERMSWRITER_H
9
10 #include "FormatPostingsTermsConsumer.h"
11
12 namespace Lucene {
13
14 class FormatPostingsTermsWriter : public FormatPostingsTermsConsumer {
15 public:
16 FormatPostingsTermsWriter(const SegmentWriteStatePtr& state, const FormatPostingsFieldsWriterPtr& parent);
17 virtual ~FormatPostingsTermsWriter();
18
19 LUCENE_CLASS(FormatPostingsTermsWriter);
20
21 public:
22 FormatPostingsFieldsWriterWeakPtr _parent;
23 SegmentWriteStatePtr state;
24 FormatPostingsDocsWriterPtr docsWriter;
25 TermInfosWriterPtr termsOut;
26 FieldInfoPtr fieldInfo;
27
28 CharArray currentTerm;
29 int32_t currentTermStart;
30
31 int64_t freqStart;
32 int64_t proxStart;
33
34 public:
35 virtual void initialize();
36
37 void setField(const FieldInfoPtr& fieldInfo);
38
40 virtual FormatPostingsDocsConsumerPtr addTerm(CharArray text, int32_t start);
41
43 virtual void finish();
44
45 void close();
46 };
47
48 }
49
50 #endif
Lucene::FormatPostingsTermsConsumer
Definition: FormatPostingsTermsConsumer.h:14
Lucene::FormatPostingsDocsWriterPtr
boost::shared_ptr< FormatPostingsDocsWriter > FormatPostingsDocsWriterPtr
Definition: LuceneTypes.h:140
Lucene::FormatPostingsTermsWriter::initialize
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
Lucene::FormatPostingsTermsWriter::finish
virtual void finish()
Called when we are done adding terms to this field.
Lucene::FormatPostingsTermsWriter::currentTerm
CharArray currentTerm
Definition: FormatPostingsTermsWriter.h:28
Lucene::FormatPostingsTermsWriter::FormatPostingsTermsWriter
FormatPostingsTermsWriter(const SegmentWriteStatePtr &state, const FormatPostingsFieldsWriterPtr &parent)
Lucene::FormatPostingsTermsWriter::currentTermStart
int32_t currentTermStart
Definition: FormatPostingsTermsWriter.h:29
Lucene::FormatPostingsTermsWriter::close
void close()
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
Lucene::FormatPostingsDocsConsumerPtr
boost::shared_ptr< FormatPostingsDocsConsumer > FormatPostingsDocsConsumerPtr
Definition: LuceneTypes.h:139
Lucene::FormatPostingsTermsWriter::termsOut
TermInfosWriterPtr termsOut
Definition: FormatPostingsTermsWriter.h:25
FormatPostingsTermsConsumer.h
Lucene::FormatPostingsTermsWriter::freqStart
int64_t freqStart
Definition: FormatPostingsTermsWriter.h:31
Lucene::FormatPostingsTermsWriter::fieldInfo
FieldInfoPtr fieldInfo
Definition: FormatPostingsTermsWriter.h:26
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::FormatPostingsTermsWriter::proxStart
int64_t proxStart
Definition: FormatPostingsTermsWriter.h:32
Lucene::FormatPostingsTermsWriter::state
SegmentWriteStatePtr state
Definition: FormatPostingsTermsWriter.h:23
Lucene::FormatPostingsTermsWriter::_parent
FormatPostingsFieldsWriterWeakPtr _parent
Definition: FormatPostingsTermsWriter.h:19
Lucene::FormatPostingsTermsWriter::~FormatPostingsTermsWriter
virtual ~FormatPostingsTermsWriter()
Lucene::FormatPostingsTermsWriter
Definition: FormatPostingsTermsWriter.h:14
Lucene::FormatPostingsTermsWriter::addTerm
virtual FormatPostingsDocsConsumerPtr addTerm(CharArray text, int32_t start)
Adds a new term in this field.
Lucene::FormatPostingsFieldsWriterPtr
boost::shared_ptr< FormatPostingsFieldsWriter > FormatPostingsFieldsWriterPtr
Definition: LuceneTypes.h:142
Lucene::FormatPostingsFieldsWriterWeakPtr
boost::weak_ptr< FormatPostingsFieldsWriter > FormatPostingsFieldsWriterWeakPtr
Definition: LuceneTypes.h:142
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
Lucene::FormatPostingsTermsWriter::setField
void setField(const FieldInfoPtr &fieldInfo)
Lucene::FormatPostingsTermsWriter::docsWriter
FormatPostingsDocsWriterPtr docsWriter
Definition: FormatPostingsTermsWriter.h:24
Lucene::TermInfosWriterPtr
boost::shared_ptr< TermInfosWriter > TermInfosWriterPtr
Definition: LuceneTypes.h:242

clucene.sourceforge.net