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
StoredFieldsWriterPerThread.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 STOREDFIELDSWRITERPERTHREAD_H
8
#define STOREDFIELDSWRITERPERTHREAD_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene {
13
14
class
StoredFieldsWriterPerThread
:
public
LuceneObject
{
15
public
:
16
StoredFieldsWriterPerThread
(
const
DocStatePtr
&
docState
,
const
StoredFieldsWriterPtr
& storedFieldsWriter);
17
virtual
~StoredFieldsWriterPerThread
();
18
19
LUCENE_CLASS
(
StoredFieldsWriterPerThread
);
20
21
public
:
22
FieldsWriterPtr
localFieldsWriter
;
23
StoredFieldsWriterWeakPtr
_storedFieldsWriter
;
24
DocStatePtr
docState
;
25
26
StoredFieldsWriterPerDocPtr
doc
;
27
28
public
:
29
void
startDocument
();
30
void
addField
(
const
FieldablePtr
& field,
const
FieldInfoPtr
& fieldInfo);
31
DocWriterPtr
finishDocument
();
32
void
abort
();
33
};
34
35
}
36
37
#endif
clucene.sourceforge.net