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
DocumentsWriterThreadState.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 DOCUMENTSWRITERTHREADSTATE_H
8 #define DOCUMENTSWRITERTHREADSTATE_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
17 class DocumentsWriterThreadState : public LuceneObject
18 {
19 public:
20 DocumentsWriterThreadState(DocumentsWriterPtr docWriter);
21 virtual ~DocumentsWriterThreadState();
22
23 LUCENE_CLASS(DocumentsWriterThreadState);
24
25 public:
26 bool isIdle; // false if this is currently in use by a thread
27 int32_t numThreads; // Number of threads that share this instance
28 bool doFlushAfter; // true if we should flush after processing current doc
29 DocConsumerPerThreadPtr consumer;
30 DocStatePtr docState;
31 DocumentsWriterWeakPtr _docWriter;
32
33 public:
34 virtual void initialize();
35 void doAfterFlush();
36 };
37 }
38
39 #endif

clucene.sourceforge.net