Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
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
17
class
DocumentsWriterThreadState
:
public
LuceneObject
{
18
public
:
19
DocumentsWriterThreadState
(
const
DocumentsWriterPtr
& docWriter);
20
virtual
~DocumentsWriterThreadState
();
21
22
LUCENE_CLASS
(
DocumentsWriterThreadState
);
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
28
DocConsumerPerThreadPtr
consumer
;
29
DocStatePtr
docState
;
30
DocumentsWriterWeakPtr
_docWriter
;
31
32
public
:
33
virtual
void
initialize
();
34
void
doAfterFlush
();
35
};
36
37
}
38
39
#endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::DocumentsWriterThreadState::initialize
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
Lucene::DocumentsWriterThreadState::consumer
DocConsumerPerThreadPtr consumer
Definition
DocumentsWriterThreadState.h:28
Lucene::DocumentsWriterThreadState::DocumentsWriterThreadState
DocumentsWriterThreadState(const DocumentsWriterPtr &docWriter)
Lucene::DocumentsWriterThreadState::~DocumentsWriterThreadState
virtual ~DocumentsWriterThreadState()
Lucene::DocumentsWriterThreadState::doAfterFlush
void doAfterFlush()
Lucene::DocumentsWriterThreadState::doFlushAfter
bool doFlushAfter
Definition
DocumentsWriterThreadState.h:27
Lucene::DocumentsWriterThreadState::numThreads
int32_t numThreads
Definition
DocumentsWriterThreadState.h:26
Lucene::DocumentsWriterThreadState::isIdle
bool isIdle
Definition
DocumentsWriterThreadState.h:25
Lucene::DocumentsWriterThreadState::docState
DocStatePtr docState
Definition
DocumentsWriterThreadState.h:29
Lucene::DocumentsWriterThreadState::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition
DocumentsWriterThreadState.h:30
Lucene::LuceneObject::LuceneObject
LuceneObject()
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition
LuceneTypes.h:123
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition
LuceneTypes.h:123
Lucene::DocConsumerPerThreadPtr
boost::shared_ptr< DocConsumerPerThread > DocConsumerPerThreadPtr
Definition
LuceneTypes.h:107
Lucene::DocStatePtr
boost::shared_ptr< DocState > DocStatePtr
Definition
LuceneTypes.h:122
clucene.sourceforge.net