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
NormsWriterPerThread.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 NORMSWRITERPERTHREAD_H
8
#define NORMSWRITERPERTHREAD_H
9
10
#include "
InvertedDocEndConsumerPerThread.h
"
11
12
namespace
Lucene {
13
14
class
NormsWriterPerThread
:
public
InvertedDocEndConsumerPerThread
{
15
public
:
16
NormsWriterPerThread
(
const
DocInverterPerThreadPtr
& docInverterPerThread,
const
NormsWriterPtr
& normsWriter);
17
virtual
~NormsWriterPerThread
();
18
19
LUCENE_CLASS
(
NormsWriterPerThread
);
20
21
public
:
22
NormsWriterWeakPtr
_normsWriter
;
23
DocStatePtr
docState
;
24
25
public
:
26
virtual
InvertedDocEndConsumerPerFieldPtr
addField
(
const
DocInverterPerFieldPtr
& docInverterPerField,
const
FieldInfoPtr
& fieldInfo);
27
virtual
void
abort
();
28
virtual
void
startDocument
();
29
virtual
void
finishDocument
();
30
31
bool
freeRAM
();
32
};
33
34
}
35
36
#endif
clucene.sourceforge.net