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


NormsWriterPerField.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 NORMSWRITERPERFIELD_H
8 #define NORMSWRITERPERFIELD_H
9 
11 
12 namespace Lucene {
13 
17 public:
18  NormsWriterPerField(const DocInverterPerFieldPtr& docInverterPerField, const NormsWriterPerThreadPtr& perThread, const FieldInfoPtr& fieldInfo);
19  virtual ~NormsWriterPerField();
20 
22 
23 public:
27 
28  // Holds all docID/norm pairs we've seen
30  ByteArray norms;
31  int32_t upto;
32 
34 
35 public:
36  void reset();
37  virtual void abort();
38 
40  virtual int32_t compareTo(const LuceneObjectPtr& other);
41 
42  virtual void finish();
43 };
44 
45 }
46 
47 #endif
DocStatePtr docState
Definition: NormsWriterPerField.h:26
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
virtual int32_t compareTo(const LuceneObjectPtr &other)
Compare two objects.
boost::weak_ptr< NormsWriterPerThread > NormsWriterPerThreadWeakPtr
Definition: LuceneTypes.h:190
FieldInvertStatePtr fieldState
Definition: NormsWriterPerField.h:33
boost::shared_ptr< NormsWriterPerThread > NormsWriterPerThreadPtr
Definition: LuceneTypes.h:190
boost::shared_ptr< DocInverterPerField > DocInverterPerFieldPtr
Definition: LuceneTypes.h:120
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
ByteArray norms
Definition: NormsWriterPerField.h:30
NormsWriterPerField(const DocInverterPerFieldPtr &docInverterPerField, const NormsWriterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition: LuceneTypes.h:128
Taps into DocInverter, as an InvertedDocEndConsumer, which is called at the end of inverting each fie...
Definition: NormsWriterPerField.h:16
int32_t upto
Definition: NormsWriterPerField.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
FieldInfoPtr fieldInfo
Definition: NormsWriterPerField.h:25
Definition: InvertedDocEndConsumerPerField.h:14
Collection< int32_t > docIDs
Definition: NormsWriterPerField.h:29
NormsWriterPerThreadWeakPtr _perThread
Definition: NormsWriterPerField.h:21
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122

clucene.sourceforge.net