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

clucene.sourceforge.net