Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
DocInverter.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 DOCINVERTER_H
8
#define DOCINVERTER_H
9
10
#include "
DocFieldConsumer.h
"
11
12
namespace
Lucene
{
13
16
class
DocInverter
:
public
DocFieldConsumer
{
17
public
:
18
DocInverter
(
const
InvertedDocConsumerPtr
&
consumer
,
const
InvertedDocEndConsumerPtr
&
endConsumer
);
19
virtual
~DocInverter
();
20
21
LUCENE_CLASS
(
DocInverter
);
22
23
public
:
24
InvertedDocConsumerPtr
consumer
;
25
InvertedDocEndConsumerPtr
endConsumer
;
26
27
public
:
28
virtual
void
setFieldInfos
(
const
FieldInfosPtr
&
fieldInfos
);
29
31
virtual
void
flush
(MapDocFieldConsumerPerThreadCollectionDocFieldConsumerPerField threadsAndFields,
const
SegmentWriteStatePtr
& state);
32
34
virtual
void
closeDocStore
(
const
SegmentWriteStatePtr
& state);
35
37
virtual
void
abort
();
38
40
virtual
bool
freeRAM
();
41
43
virtual
DocFieldConsumerPerThreadPtr
addThread
(
const
DocFieldProcessorPerThreadPtr
& docFieldProcessorPerThread);
44
};
45
46
}
47
48
#endif
DocFieldConsumer.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::DocFieldConsumer
Definition
DocFieldConsumer.h:14
Lucene::DocFieldConsumer::fieldInfos
FieldInfosPtr fieldInfos
Definition
DocFieldConsumer.h:21
Lucene::DocInverter::~DocInverter
virtual ~DocInverter()
Lucene::DocInverter::flush
virtual void flush(MapDocFieldConsumerPerThreadCollectionDocFieldConsumerPerField threadsAndFields, const SegmentWriteStatePtr &state)
Called when DocumentsWriter decides to create a new segment.
Lucene::DocInverter::closeDocStore
virtual void closeDocStore(const SegmentWriteStatePtr &state)
Called when DocumentsWriter decides to close the doc stores.
Lucene::DocInverter::abort
virtual void abort()
Called when an aborting exception is hit.
Lucene::DocInverter::addThread
virtual DocFieldConsumerPerThreadPtr addThread(const DocFieldProcessorPerThreadPtr &docFieldProcessorPerThread)
Add a new thread.
Lucene::DocInverter::DocInverter
DocInverter(const InvertedDocConsumerPtr &consumer, const InvertedDocEndConsumerPtr &endConsumer)
Lucene::DocInverter::freeRAM
virtual bool freeRAM()
Called when DocumentsWriter is using too much RAM.
Lucene::DocInverter::setFieldInfos
virtual void setFieldInfos(const FieldInfosPtr &fieldInfos)
Lucene::DocInverter::endConsumer
InvertedDocEndConsumerPtr endConsumer
Definition
DocInverter.h:25
Lucene::DocInverter::consumer
InvertedDocConsumerPtr consumer
Definition
DocInverter.h:24
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition
LuceneTypes.h:127
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition
LuceneTypes.h:222
Lucene::InvertedDocConsumerPtr
boost::shared_ptr< InvertedDocConsumer > InvertedDocConsumerPtr
Definition
LuceneTypes.h:163
Lucene::DocFieldConsumerPerThreadPtr
boost::shared_ptr< DocFieldConsumerPerThread > DocFieldConsumerPerThreadPtr
Definition
LuceneTypes.h:110
Lucene::InvertedDocEndConsumerPtr
boost::shared_ptr< InvertedDocEndConsumer > InvertedDocEndConsumerPtr
Definition
LuceneTypes.h:166
Lucene::DocFieldProcessorPerThreadPtr
boost::shared_ptr< DocFieldProcessorPerThread > DocFieldProcessorPerThreadPtr
Definition
LuceneTypes.h:117
clucene.sourceforge.net