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
FormatPostingsTermsWriter.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 FORMATPOSTINGSTERMSWRITER_H
8
#define FORMATPOSTINGSTERMSWRITER_H
9
10
#include "
FormatPostingsTermsConsumer.h
"
11
12
namespace
Lucene
13
{
14
class
FormatPostingsTermsWriter
:
public
FormatPostingsTermsConsumer
15
{
16
public
:
17
FormatPostingsTermsWriter
(
SegmentWriteStatePtr
state
,
FormatPostingsFieldsWriterPtr
parent);
18
virtual
~FormatPostingsTermsWriter
();
19
20
LUCENE_CLASS
(
FormatPostingsTermsWriter
);
21
22
public
:
23
FormatPostingsFieldsWriterWeakPtr
_parent
;
24
SegmentWriteStatePtr
state
;
25
FormatPostingsDocsWriterPtr
docsWriter
;
26
TermInfosWriterPtr
termsOut
;
27
FieldInfoPtr
fieldInfo
;
28
29
CharArray
currentTerm
;
30
int32_t
currentTermStart
;
31
32
int64_t
freqStart
;
33
int64_t
proxStart
;
34
35
public
:
36
virtual
void
initialize
();
37
38
void
setField
(
FieldInfoPtr
fieldInfo
);
39
41
virtual
FormatPostingsDocsConsumerPtr
addTerm
(CharArray text, int32_t start);
42
44
virtual
void
finish
();
45
46
void
close
();
47
};
48
}
49
50
#endif
clucene.sourceforge.net