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
NormsWriter.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 NORMSWRITER_H
8 #define NORMSWRITER_H
9
10 #include "InvertedDocEndConsumer.h"
11
12 namespace Lucene
13 {
16 class NormsWriter : public InvertedDocEndConsumer
17 {
18 public:
19 NormsWriter();
20 virtual ~NormsWriter();
21
22 LUCENE_CLASS(NormsWriter);
23
24 protected:
25 FieldInfosPtr fieldInfos;
26
27 public:
28 virtual InvertedDocEndConsumerPerThreadPtr addThread(DocInverterPerThreadPtr docInverterPerThread);
29 virtual void abort();
30
31 // We only write the _X.nrm file at flush
32 virtual void files(HashSet<String> files);
33
34 virtual void setFieldInfos(FieldInfosPtr fieldInfos);
35
37 virtual void flush(MapInvertedDocEndConsumerPerThreadCollectionInvertedDocEndConsumerPerField threadsAndFields, SegmentWriteStatePtr state);
38 virtual void closeDocStore(SegmentWriteStatePtr state);
39
40 protected:
41 static uint8_t getDefaultNorm();
42 };
43 }
44
45 #endif

clucene.sourceforge.net