Lucene++ - a full-featured, c++ search engine
API Documentation


 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 {
17  {
18  public:
19  NormsWriter();
20  virtual ~NormsWriter();
21 
23 
24  protected:
26 
27  public:
29  virtual void abort();
30 
31  // We only write the _X.nrm file at flush
32  virtual void files(HashSet<String> files);
33 
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