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


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 
18 public:
20  virtual ~DocFieldProcessor();
21 
23 
24 public:
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();
36 };
37 
38 }
39 
40 #endif
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition: Collection.h:17
Definition: DocConsumer.h:14
This is a DocConsumer that gathers all fields under the same name, and calls per-field consumers to p...
Definition: DocFieldProcessor.h:17
DocFieldProcessor(const DocumentsWriterPtr &docWriter, const DocFieldConsumerPtr &consumer)
virtual DocConsumerPerThreadPtr addThread(const DocumentsWriterThreadStatePtr &perThread)
FieldInfosPtr fieldInfos
Definition: DocFieldProcessor.h:26
DocumentsWriterWeakPtr _docWriter
Definition: DocFieldProcessor.h:22
virtual void closeDocStore(const SegmentWriteStatePtr &state)
StoredFieldsWriterPtr fieldsWriter
Definition: DocFieldProcessor.h:28
DocFieldConsumerPtr consumer
Definition: DocFieldProcessor.h:27
virtual void flush(Collection< DocConsumerPerThreadPtr > threads, const SegmentWriteStatePtr &state)
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition: LuceneTypes.h:123
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
boost::shared_ptr< StoredFieldsWriter > StoredFieldsWriterPtr
Definition: LuceneTypes.h:230
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition: LuceneTypes.h:123
boost::shared_ptr< DocFieldConsumer > DocFieldConsumerPtr
Definition: LuceneTypes.h:108
boost::shared_ptr< DocConsumerPerThread > DocConsumerPerThreadPtr
Definition: LuceneTypes.h:107
boost::shared_ptr< DocumentsWriterThreadState > DocumentsWriterThreadStatePtr
Definition: LuceneTypes.h:124

clucene.sourceforge.net