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


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

clucene.sourceforge.net