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