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
DocFieldProcessor.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 DOCFIELDPROCESSOR_H
8 #define DOCFIELDPROCESSOR_H
9
10 #include "DocConsumer.h"
11
12 namespace Lucene
13 {
17 class DocFieldProcessor : public DocConsumer
18 {
19 public:
20 DocFieldProcessor(DocumentsWriterPtr docWriter, DocFieldConsumerPtr consumer);
21 virtual ~DocFieldProcessor();
22
23 LUCENE_CLASS(DocFieldProcessor);
24
25 public:
26 DocumentsWriterWeakPtr _docWriter;
27 FieldInfosPtr fieldInfos;
28 DocFieldConsumerPtr consumer;
29 StoredFieldsWriterPtr fieldsWriter;
30
31 public:
32 virtual void closeDocStore(SegmentWriteStatePtr state);
33 virtual void flush(Collection<DocConsumerPerThreadPtr> threads, SegmentWriteStatePtr state);
34 virtual void abort();
35 virtual bool freeRAM();
36 virtual DocConsumerPerThreadPtr addThread(DocumentsWriterThreadStatePtr perThread);
37 };
38 }
39
40 #endif

clucene.sourceforge.net