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
FormatPostingsFieldsWriter.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 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
clucene.sourceforge.net