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
NormsWriterPerField.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 {
18 public:
19 NormsWriterPerField(DocInverterPerFieldPtr docInverterPerField, NormsWriterPerThreadPtr perThread, FieldInfoPtr fieldInfo);
20 virtual ~NormsWriterPerField();
21
22 LUCENE_CLASS(NormsWriterPerField);
23
24 public:
25 NormsWriterPerThreadWeakPtr _perThread;
26 FieldInfoPtr fieldInfo;
27 DocStatePtr docState;
28
29 // Holds all docID/norm pairs we've seen
30 Collection<int32_t> docIDs;
31 ByteArray norms;
32 int32_t upto;
33
34 FieldInvertStatePtr fieldState;
35
36 public:
37 void reset();
38 virtual void abort();
39
41 virtual int32_t compareTo(LuceneObjectPtr other);
42
43 virtual void finish();
44 };
45 }
46
47 #endif

clucene.sourceforge.net