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


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

clucene.sourceforge.net