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

StoredFieldsWriterPerThread.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 STOREDFIELDSWRITERPERTHREAD_H
8 #define STOREDFIELDSWRITERPERTHREAD_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene {
13
14 class StoredFieldsWriterPerThread : public LuceneObject {
15 public:
16 StoredFieldsWriterPerThread(const DocStatePtr& docState, const StoredFieldsWriterPtr& storedFieldsWriter);
17 virtual ~StoredFieldsWriterPerThread();
18
19 LUCENE_CLASS(StoredFieldsWriterPerThread);
20
21 public:
22 FieldsWriterPtr localFieldsWriter;
23 StoredFieldsWriterWeakPtr _storedFieldsWriter;
24 DocStatePtr docState;
25
26 StoredFieldsWriterPerDocPtr doc;
27
28 public:
29 void startDocument();
30 void addField(const FieldablePtr& field, const FieldInfoPtr& fieldInfo);
31 DocWriterPtr finishDocument();
32 void abort();
33 };
34
35 }
36
37 #endif
LuceneObject.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::LuceneObject
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Lucene::StoredFieldsWriterPerThread
Definition: StoredFieldsWriterPerThread.h:14
Lucene::StoredFieldsWriterPerThread::startDocument
void startDocument()
Lucene::StoredFieldsWriterPerThread::abort
void abort()
Lucene::StoredFieldsWriterPerThread::finishDocument
DocWriterPtr finishDocument()
Lucene::StoredFieldsWriterPerThread::docState
DocStatePtr docState
Definition: StoredFieldsWriterPerThread.h:24
Lucene::StoredFieldsWriterPerThread::_storedFieldsWriter
StoredFieldsWriterWeakPtr _storedFieldsWriter
Definition: StoredFieldsWriterPerThread.h:23
Lucene::StoredFieldsWriterPerThread::addField
void addField(const FieldablePtr &field, const FieldInfoPtr &fieldInfo)
Lucene::StoredFieldsWriterPerThread::~StoredFieldsWriterPerThread
virtual ~StoredFieldsWriterPerThread()
Lucene::StoredFieldsWriterPerThread::doc
StoredFieldsWriterPerDocPtr doc
Definition: StoredFieldsWriterPerThread.h:26
Lucene::StoredFieldsWriterPerThread::localFieldsWriter
FieldsWriterPtr localFieldsWriter
Definition: StoredFieldsWriterPerThread.h:19
Lucene::StoredFieldsWriterPerThread::StoredFieldsWriterPerThread
StoredFieldsWriterPerThread(const DocStatePtr &docState, const StoredFieldsWriterPtr &storedFieldsWriter)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::DocStatePtr
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122
Lucene::StoredFieldsWriterPerDocPtr
boost::shared_ptr< StoredFieldsWriterPerDoc > StoredFieldsWriterPerDocPtr
Definition: LuceneTypes.h:231
Lucene::FieldablePtr
boost::shared_ptr< Fieldable > FieldablePtr
Definition: LuceneTypes.h:76
Lucene::StoredFieldsWriterPtr
boost::shared_ptr< StoredFieldsWriter > StoredFieldsWriterPtr
Definition: LuceneTypes.h:230
Lucene::DocWriterPtr
boost::shared_ptr< DocWriter > DocWriterPtr
Definition: LuceneTypes.h:125
Lucene::StoredFieldsWriterWeakPtr
boost::weak_ptr< StoredFieldsWriter > StoredFieldsWriterWeakPtr
Definition: LuceneTypes.h:230
Lucene::FieldsWriterPtr
boost::shared_ptr< FieldsWriter > FieldsWriterPtr
Definition: LuceneTypes.h:133
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126

clucene.sourceforge.net