Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
DocFieldProcessor.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 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
DocConsumer.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::DocConsumer
Definition
DocConsumer.h:14
Lucene::DocFieldProcessor::DocFieldProcessor
DocFieldProcessor(const DocumentsWriterPtr &docWriter, const DocFieldConsumerPtr &consumer)
Lucene::DocFieldProcessor::addThread
virtual DocConsumerPerThreadPtr addThread(const DocumentsWriterThreadStatePtr &perThread)
Lucene::DocFieldProcessor::abort
virtual void abort()
Lucene::DocFieldProcessor::~DocFieldProcessor
virtual ~DocFieldProcessor()
Lucene::DocFieldProcessor::freeRAM
virtual bool freeRAM()
Lucene::DocFieldProcessor::fieldInfos
FieldInfosPtr fieldInfos
Definition
DocFieldProcessor.h:26
Lucene::DocFieldProcessor::_docWriter
DocumentsWriterWeakPtr _docWriter
Definition
DocFieldProcessor.h:25
Lucene::DocFieldProcessor::closeDocStore
virtual void closeDocStore(const SegmentWriteStatePtr &state)
Lucene::DocFieldProcessor::fieldsWriter
StoredFieldsWriterPtr fieldsWriter
Definition
DocFieldProcessor.h:28
Lucene::DocFieldProcessor::consumer
DocFieldConsumerPtr consumer
Definition
DocFieldProcessor.h:27
Lucene::DocFieldProcessor::flush
virtual void flush(Collection< DocConsumerPerThreadPtr > threads, const SegmentWriteStatePtr &state)
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::StoredFieldsWriterPtr
boost::shared_ptr< StoredFieldsWriter > StoredFieldsWriterPtr
Definition
LuceneTypes.h:230
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition
LuceneTypes.h:127
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition
LuceneTypes.h:222
Lucene::DocumentsWriterWeakPtr
boost::weak_ptr< DocumentsWriter > DocumentsWriterWeakPtr
Definition
LuceneTypes.h:123
Lucene::DocFieldConsumerPtr
boost::shared_ptr< DocFieldConsumer > DocFieldConsumerPtr
Definition
LuceneTypes.h:108
Lucene::DocumentsWriterPtr
boost::shared_ptr< DocumentsWriter > DocumentsWriterPtr
Definition
LuceneTypes.h:123
Lucene::DocConsumerPerThreadPtr
boost::shared_ptr< DocConsumerPerThread > DocConsumerPerThreadPtr
Definition
LuceneTypes.h:107
Lucene::DocumentsWriterThreadStatePtr
boost::shared_ptr< DocumentsWriterThreadState > DocumentsWriterThreadStatePtr
Definition
LuceneTypes.h:124
clucene.sourceforge.net