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


Loading...
Searching...
No Matches
StoredFieldsWriter.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 STOREDFIELDSWRITER_H
8#define STOREDFIELDSWRITER_H
9
10#include "DocumentsWriter.h"
11
12namespace Lucene {
13
49
51public:
54
56
57protected:
59
60public:
64
65public:
66 void reset();
67 virtual void abort();
68 virtual int64_t sizeInBytes();
69 virtual void finish();
70};
71
72}
73
74#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
Consumer returns this on each doc. This holds any state that must be flushed synchronized "in docID o...
Definition DocumentsWriter.h:402
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition StoredFieldsWriter.h:50
StoredFieldsWriterPerDoc(const StoredFieldsWriterPtr &fieldsWriter)
StoredFieldsWriterWeakPtr _fieldsWriter
Definition StoredFieldsWriter.h:58
PerDocBufferPtr buffer
Definition StoredFieldsWriter.h:61
RAMOutputStreamPtr fdt
Definition StoredFieldsWriter.h:62
int32_t numStoredFields
Definition StoredFieldsWriter.h:63
This is a DocFieldConsumer that writes stored fields.
Definition StoredFieldsWriter.h:15
StoredFieldsWriter(const DocumentsWriterPtr &docWriter, const FieldInfosPtr &fieldInfos)
void flush(const SegmentWriteStatePtr &state)
FieldInfosPtr fieldInfos
Definition StoredFieldsWriter.h:25
void fill(int32_t docID)
Fills in any hole in the docIDs.
FieldsWriterPtr fieldsWriter
Definition StoredFieldsWriter.h:23
void free(const StoredFieldsWriterPerDocPtr &perDoc)
int32_t lastDocID
Definition StoredFieldsWriter.h:26
void finishDocument(const StoredFieldsWriterPerDocPtr &perDoc)
int32_t freeCount
Definition StoredFieldsWriter.h:29
DocumentsWriterWeakPtr _docWriter
Definition StoredFieldsWriter.h:24
StoredFieldsWriterPerThreadPtr addThread(const DocStatePtr &docState)
void closeDocStore(const SegmentWriteStatePtr &state)
StoredFieldsWriterPerDocPtr getPerDoc()
int32_t allocCount
Definition StoredFieldsWriter.h:30
Collection< StoredFieldsWriterPerDocPtr > docFreeList
Definition StoredFieldsWriter.h:28
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< DocState > DocStatePtr
Definition LuceneTypes.h:122
boost::shared_ptr< StoredFieldsWriterPerDoc > StoredFieldsWriterPerDocPtr
Definition LuceneTypes.h:231
boost::shared_ptr< StoredFieldsWriterPerThread > StoredFieldsWriterPerThreadPtr
Definition LuceneTypes.h:232
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::weak_ptr< StoredFieldsWriter > StoredFieldsWriterWeakPtr
Definition LuceneTypes.h:230
boost::shared_ptr< FieldsWriter > FieldsWriterPtr
Definition LuceneTypes.h:133
boost::shared_ptr< PerDocBuffer > PerDocBufferPtr
Definition LuceneTypes.h:199
boost::shared_ptr< RAMOutputStream > RAMOutputStreamPtr
Definition LuceneTypes.h:508

clucene.sourceforge.net