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


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
12namespace Lucene {
13
16public:
19
21
22public:
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
42public:
43 virtual void initialize();
44
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
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: FormatPostingsDocsConsumer.h:14
Consumes doc & freq, writing them using the current index file format.
Definition: FormatPostingsDocsWriter.h:15
TermInfoPtr termInfo
Definition: FormatPostingsDocsWriter.h:39
FieldInfoPtr fieldInfo
Definition: FormatPostingsDocsWriter.h:34
virtual FormatPostingsPositionsConsumerPtr addDoc(int32_t docID, int32_t termDocFreq)
Adds a new doc in this term. If this returns null then we just skip consuming positions/payloads.
int32_t df
Definition: FormatPostingsDocsWriter.h:37
int32_t totalNumDocs
Definition: FormatPostingsDocsWriter.h:29
virtual void finish()
Called when we are done adding docs to this term.
int32_t lastDocID
Definition: FormatPostingsDocsWriter.h:36
FormatPostingsTermsWriterWeakPtr _parent
Definition: FormatPostingsDocsWriter.h:24
int64_t freqStart
Definition: FormatPostingsDocsWriter.h:33
bool omitTermFreqAndPositions
Definition: FormatPostingsDocsWriter.h:31
SegmentWriteStatePtr state
Definition: FormatPostingsDocsWriter.h:25
bool storePayloads
Definition: FormatPostingsDocsWriter.h:32
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
DefaultSkipListWriterPtr skipListWriter
Definition: FormatPostingsDocsWriter.h:27
int32_t skipInterval
Definition: FormatPostingsDocsWriter.h:28
UTF8ResultPtr utf8
Definition: FormatPostingsDocsWriter.h:40
FormatPostingsDocsWriter(const SegmentWriteStatePtr &state, const FormatPostingsTermsWriterPtr &parent)
FormatPostingsPositionsWriterPtr posWriter
Definition: FormatPostingsDocsWriter.h:26
void setField(const FieldInfoPtr &fieldInfo)
IndexOutputPtr out
Definition: FormatPostingsDocsWriter.h:23
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< DefaultSkipListWriter > DefaultSkipListWriterPtr
Definition: LuceneTypes.h:104
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
boost::shared_ptr< FormatPostingsTermsWriter > FormatPostingsTermsWriterPtr
Definition: LuceneTypes.h:146
boost::shared_ptr< UTF8Result > UTF8ResultPtr
Definition: LuceneTypes.h:559
boost::shared_ptr< IndexOutput > IndexOutputPtr
Definition: LuceneTypes.h:494
boost::weak_ptr< FormatPostingsTermsWriter > FormatPostingsTermsWriterWeakPtr
Definition: LuceneTypes.h:146
boost::shared_ptr< TermInfo > TermInfoPtr
Definition: LuceneTypes.h:239
boost::shared_ptr< FormatPostingsPositionsWriter > FormatPostingsPositionsWriterPtr
Definition: LuceneTypes.h:144
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
boost::shared_ptr< FormatPostingsPositionsConsumer > FormatPostingsPositionsConsumerPtr
Definition: LuceneTypes.h:143

clucene.sourceforge.net