Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
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
clucene.sourceforge.net