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
DocFieldProcessor.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 DOCFIELDPROCESSOR_H
8
#define DOCFIELDPROCESSOR_H
9
10
#include "
DocConsumer.h
"
11
12
namespace
Lucene {
13
17
class
DocFieldProcessor
:
public
DocConsumer
{
18
public
:
19
DocFieldProcessor
(
const
DocumentsWriterPtr
& docWriter,
const
DocFieldConsumerPtr
&
consumer
);
20
virtual
~DocFieldProcessor
();
21
22
LUCENE_CLASS
(
DocFieldProcessor
);
23
24
public
:
25
DocumentsWriterWeakPtr
_docWriter
;
26
FieldInfosPtr
fieldInfos
;
27
DocFieldConsumerPtr
consumer
;
28
StoredFieldsWriterPtr
fieldsWriter
;
29
30
public
:
31
virtual
void
closeDocStore
(
const
SegmentWriteStatePtr
& state);
32
virtual
void
flush
(
Collection<DocConsumerPerThreadPtr>
threads,
const
SegmentWriteStatePtr
& state);
33
virtual
void
abort
();
34
virtual
bool
freeRAM
();
35
virtual
DocConsumerPerThreadPtr
addThread
(
const
DocumentsWriterThreadStatePtr
& perThread);
36
};
37
38
}
39
40
#endif
clucene.sourceforge.net