Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DocumentsWriterThreadState.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 DOCUMENTSWRITERTHREADSTATE_H
8 #define DOCUMENTSWRITERTHREADSTATE_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
18 public:
21 
23 
24 public:
25  bool isIdle; // false if this is currently in use by a thread
26  int32_t numThreads; // Number of threads that share this instance
27  bool doFlushAfter; // true if we should flush after processing current doc
31 
32 public:
33  virtual void initialize();
34  void doAfterFlush();
35 };
36 
37 }
38 
39 #endif

clucene.sourceforge.net