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
// Copyright (c) 2009-2011 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
{
16
public
:
17
FormatPostingsFieldsWriter
(
SegmentWriteStatePtr
state
,
FieldInfosPtr
fieldInfos
);
18
virtual
~FormatPostingsFieldsWriter
();
19
20
LUCENE_CLASS
(
FormatPostingsFieldsWriter
);
21
22
public
:
23
DirectoryPtr
dir
;
24
String
segment
;
25
TermInfosWriterPtr
termsOut
;
26
SegmentWriteStatePtr
state
;
27
FieldInfosPtr
fieldInfos
;
28
FormatPostingsTermsWriterPtr
termsWriter
;
29
DefaultSkipListWriterPtr
skipListWriter
;
30
int32_t
totalNumDocs
;
31
32
public
:
33
virtual
void
initialize
();
34
36
virtual
FormatPostingsTermsConsumerPtr
addField
(
FieldInfoPtr
field);
37
39
virtual
void
finish
();
40
};
41
}
42
43
#endif
clucene.sourceforge.net