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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

DocFieldProcessor.h
Go to the documentation of this file.
1 // 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 DOCFIELDPROCESSOR_H
8 #define DOCFIELDPROCESSOR_H
9
10 #include "DocConsumer.h"
11
12 namespace Lucene {
13
17 class DocFieldProcessor : public DocConsumer {
18 public:
19 DocFieldProcessor(const DocumentsWriterPtr& docWriter, const DocFieldConsumerPtr& consumer);
20 virtual ~DocFieldProcessor();
21
22 LUCENE_CLASS(DocFieldProcessor);
23
24 public:
25 DocumentsWriterWeakPtr _docWriter;
26 FieldInfosPtr fieldInfos;
27 DocFieldConsumerPtr consumer;
28 StoredFieldsWriterPtr fieldsWriter;
29
30 public:
31 virtual void closeDocStore(const SegmentWriteStatePtr& state);
32 virtual void flush(Collection<DocConsumerPerThreadPtr> threads, const SegmentWriteStatePtr& state);
33 virtual void abort();
34 virtual bool freeRAM();
35 virtual DocConsumerPerThreadPtr addThread(const DocumentsWriterThreadStatePtr& perThread);
36 };
37
38 }
39
40 #endif
Lucene::DocFieldProcessor::consumer
DocFieldConsumerPtr consumer
Definition: DocFieldProcessor.h:27
DocConsumer.h
Lucene::DocFieldProcessor::fieldsWriter
StoredFieldsWriterPtr fieldsWriter
Definition: DocFieldProcessor.h:28
Lucene::DocFieldProcessor::closeDocStore
virtual void closeDocStore(const SegmentWriteStatePtr &state)
Lucene::DocFieldProcessor::freeRAM
virtual bool freeRAM()
Lucene::DocFieldProcessor::~DocFieldProcessor
virtual ~DocFieldProcessor()
Lucene::DocumentsWriterThreadStatePtr
boost::shared_ptr< DocumentsWriterThreadState > DocumentsWriterThreadStatePtr
Definition: LuceneTypes.h:124
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
Lucene::DocFieldProcessor::flush
virtual void flush(Collection< DocConsumerPerThreadPtr > threads, const SegmentWriteStatePtr &state)
Lucene::DocFieldProcessor::addThread
virtual DocConsumerPerThreadPtr addThread(const DocumentsWriterThreadStatePtr &perThread)
Lucene::DocFieldConsumerPtr
boost::shared_ptr< DocFieldConsumer > DocFieldConsumerPtr
Definition: LuceneTypes.h:108
Lucene::DocFieldProcessor::abort
virtual void abort()
Lucene::DocFieldProcessor::DocFieldProcessor
DocFieldProcessor(const DocumentsWriterPtr &docWriter, const DocFieldConsumerPtr &consumer)
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::DocFieldProcessor::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition: DocFieldProcessor.h:22
Lucene::DocFieldProcessor::fieldInfos
FieldInfosPtr fieldInfos
Definition: DocFieldProcessor.h:26
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
Lucene::StoredFieldsWriterPtr
boost::shared_ptr< StoredFieldsWriter > StoredFieldsWriterPtr
Definition: LuceneTypes.h:230
Lucene::DocFieldProcessor
This is a DocConsumer that gathers all fields under the same name, and calls per-field consumers to p...
Definition: DocFieldProcessor.h:17
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
Lucene::DocConsumerPerThreadPtr
boost::shared_ptr< DocConsumerPerThread > DocConsumerPerThreadPtr
Definition: LuceneTypes.h:107
Lucene::DocConsumer
Definition: DocConsumer.h:14

clucene.sourceforge.net