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


Loading...
Searching...
No Matches
NormsWriterPerField.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 NORMSWRITERPERFIELD_H
8#define NORMSWRITERPERFIELD_H
9
11
12namespace Lucene {
13
17public:
18 NormsWriterPerField(const DocInverterPerFieldPtr& docInverterPerField, const NormsWriterPerThreadPtr& perThread, const FieldInfoPtr& fieldInfo);
20
22
23public:
27
28 // Holds all docID/norm pairs we've seen
30 ByteArray norms;
31 int32_t upto;
32
34
35public:
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
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Definition InvertedDocEndConsumerPerField.h:14
Taps into DocInverter, as an InvertedDocEndConsumer, which is called at the end of inverting each fie...
Definition NormsWriterPerField.h:16
FieldInvertStatePtr fieldState
Definition NormsWriterPerField.h:33
FieldInfoPtr fieldInfo
Definition NormsWriterPerField.h:25
int32_t upto
Definition NormsWriterPerField.h:31
ByteArray norms
Definition NormsWriterPerField.h:30
virtual int32_t compareTo(const LuceneObjectPtr &other)
Compare two objects.
Collection< int32_t > docIDs
Definition NormsWriterPerField.h:29
NormsWriterPerThreadWeakPtr _perThread
Definition NormsWriterPerField.h:24
DocStatePtr docState
Definition NormsWriterPerField.h:26
NormsWriterPerField(const DocInverterPerFieldPtr &docInverterPerField, const NormsWriterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< DocState > DocStatePtr
Definition LuceneTypes.h:122
boost::shared_ptr< NormsWriterPerThread > NormsWriterPerThreadPtr
Definition LuceneTypes.h:190
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition LuceneTypes.h:539
boost::shared_ptr< DocInverterPerField > DocInverterPerFieldPtr
Definition LuceneTypes.h:120
boost::weak_ptr< NormsWriterPerThread > NormsWriterPerThreadWeakPtr
Definition LuceneTypes.h:190
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition LuceneTypes.h:128
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition LuceneTypes.h:126

clucene.sourceforge.net