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


NormsWriter.h
Go to the documentation of this file.
1 // 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 NORMSWRITER_H
8 #define NORMSWRITER_H
9 
10 #include "InvertedDocEndConsumer.h"
11 
12 namespace Lucene {
13 
17 public:
19  virtual ~NormsWriter();
20 
22 
23 protected:
25 
26 public:
28  virtual void abort();
29 
30  // We only write the _X.nrm file at flush
31  virtual void files(HashSet<String> files);
32 
33  virtual void setFieldInfos(const FieldInfosPtr& fieldInfos);
34 
36  virtual void flush(MapInvertedDocEndConsumerPerThreadCollectionInvertedDocEndConsumerPerField threadsAndFields, const SegmentWriteStatePtr& state);
37  virtual void closeDocStore(const SegmentWriteStatePtr& state);
38 
39 protected:
40  static uint8_t getDefaultNorm();
41 };
42 
43 }
44 
45 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::NormsWriter
Writes norms. Each thread X field accumulates the norms for the doc/fields it saw,...
Definition: NormsWriter.h:16
Lucene::NormsWriter::files
virtual void files(HashSet< String > files)
Lucene::NormsWriter::abort
virtual void abort()
Lucene::FieldInfosPtr
boost::shared_ptr< FieldInfos > FieldInfosPtr
Definition: LuceneTypes.h:127
InvertedDocEndConsumer.h
Lucene::SegmentWriteStatePtr
boost::shared_ptr< SegmentWriteState > SegmentWriteStatePtr
Definition: LuceneTypes.h:222
Lucene::DocInverterPerThreadPtr
boost::shared_ptr< DocInverterPerThread > DocInverterPerThreadPtr
Definition: LuceneTypes.h:121
Lucene::NormsWriter::setFieldInfos
virtual void setFieldInfos(const FieldInfosPtr &fieldInfos)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::NormsWriter::flush
virtual void flush(MapInvertedDocEndConsumerPerThreadCollectionInvertedDocEndConsumerPerField threadsAndFields, const SegmentWriteStatePtr &state)
Produce _X.nrm if any document had a field with norms not disabled.
Lucene::NormsWriter::getDefaultNorm
static uint8_t getDefaultNorm()
Lucene::InvertedDocEndConsumerPerThreadPtr
boost::shared_ptr< InvertedDocEndConsumerPerThread > InvertedDocEndConsumerPerThreadPtr
Definition: LuceneTypes.h:168
Lucene::HashSet< String >
Lucene::NormsWriter::NormsWriter
NormsWriter()
Lucene::NormsWriter::fieldInfos
FieldInfosPtr fieldInfos
Definition: NormsWriter.h:21
Lucene::NormsWriter::closeDocStore
virtual void closeDocStore(const SegmentWriteStatePtr &state)
Lucene::InvertedDocEndConsumer
Definition: InvertedDocEndConsumer.h:14
Lucene::NormsWriter::~NormsWriter
virtual ~NormsWriter()
Lucene::NormsWriter::addThread
virtual InvertedDocEndConsumerPerThreadPtr addThread(const DocInverterPerThreadPtr &docInverterPerThread)

clucene.sourceforge.net