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
NormsWriterPerField.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 NORMSWRITERPERFIELD_H
8
#define NORMSWRITERPERFIELD_H
9
10
#include "
InvertedDocEndConsumerPerField.h
"
11
12
namespace
Lucene {
13
16
class
NormsWriterPerField
:
public
InvertedDocEndConsumerPerField
{
17
public
:
18
NormsWriterPerField
(
const
DocInverterPerFieldPtr
& docInverterPerField,
const
NormsWriterPerThreadPtr
& perThread,
const
FieldInfoPtr
&
fieldInfo
);
19
virtual
~NormsWriterPerField
();
20
21
LUCENE_CLASS
(
NormsWriterPerField
);
22
23
public
:
24
NormsWriterPerThreadWeakPtr
_perThread
;
25
FieldInfoPtr
fieldInfo
;
26
DocStatePtr
docState
;
27
28
// Holds all docID/norm pairs we've seen
29
Collection<int32_t>
docIDs
;
30
ByteArray
norms
;
31
int32_t
upto
;
32
33
FieldInvertStatePtr
fieldState
;
34
35
public
:
36
void
reset
();
37
virtual
void
abort
();
38
40
virtual
int32_t
compareTo
(
const
LuceneObjectPtr
& other);
41
42
virtual
void
finish
();
43
};
44
45
}
46
47
#endif
clucene.sourceforge.net