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

DocInverterPerField.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 DOCINVERTERPERFIELD_H
8 #define DOCINVERTERPERFIELD_H
9
10 #include "DocFieldConsumerPerField.h"
11
12 namespace Lucene {
13
17 class DocInverterPerField : public DocFieldConsumerPerField {
18 public:
19 DocInverterPerField(const DocInverterPerThreadPtr& perThread, const FieldInfoPtr& fieldInfo);
20 virtual ~DocInverterPerField();
21
22 LUCENE_CLASS(DocInverterPerField);
23
24 protected:
25 DocInverterPerThreadWeakPtr _perThread;
26 FieldInfoPtr fieldInfo;
27
28 public:
29 InvertedDocConsumerPerFieldPtr consumer;
30 InvertedDocEndConsumerPerFieldPtr endConsumer;
31 DocStatePtr docState;
32 FieldInvertStatePtr fieldState;
33
34 public:
35 virtual void initialize();
36 virtual void abort();
37
39 virtual void processFields(Collection<FieldablePtr> fields, int32_t count);
40 };
41
42 }
43
44 #endif
DocFieldConsumerPerField.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::Collection< FieldablePtr >
Lucene::DocFieldConsumerPerField
Definition: DocFieldConsumerPerField.h:14
Lucene::DocInverterPerField
Holds state for inverting all occurrences of a single field in the document. This class doesn't do an...
Definition: DocInverterPerField.h:17
Lucene::DocInverterPerField::initialize
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
Lucene::DocInverterPerField::fieldInfo
FieldInfoPtr fieldInfo
Definition: DocInverterPerField.h:26
Lucene::DocInverterPerField::processFields
virtual void processFields(Collection< FieldablePtr > fields, int32_t count)
Processes all occurrences of a single field.
Lucene::DocInverterPerField::docState
DocStatePtr docState
Definition: DocInverterPerField.h:31
Lucene::DocInverterPerField::abort
virtual void abort()
Lucene::DocInverterPerField::fieldState
FieldInvertStatePtr fieldState
Definition: DocInverterPerField.h:32
Lucene::DocInverterPerField::consumer
InvertedDocConsumerPerFieldPtr consumer
Definition: DocInverterPerField.h:29
Lucene::DocInverterPerField::_perThread
DocInverterPerThreadWeakPtr _perThread
Definition: DocInverterPerField.h:22
Lucene::DocInverterPerField::endConsumer
InvertedDocEndConsumerPerFieldPtr endConsumer
Definition: DocInverterPerField.h:30
Lucene::DocInverterPerField::~DocInverterPerField
virtual ~DocInverterPerField()
Lucene::DocInverterPerField::DocInverterPerField
DocInverterPerField(const DocInverterPerThreadPtr &perThread, const FieldInfoPtr &fieldInfo)
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::DocStatePtr
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122
Lucene::FieldInvertStatePtr
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition: LuceneTypes.h:128
Lucene::DocInverterPerThreadWeakPtr
boost::weak_ptr< DocInverterPerThread > DocInverterPerThreadWeakPtr
Definition: LuceneTypes.h:121
Lucene::DocInverterPerThreadPtr
boost::shared_ptr< DocInverterPerThread > DocInverterPerThreadPtr
Definition: LuceneTypes.h:121
Lucene::InvertedDocEndConsumerPerFieldPtr
boost::shared_ptr< InvertedDocEndConsumerPerField > InvertedDocEndConsumerPerFieldPtr
Definition: LuceneTypes.h:167
Lucene::FieldInfoPtr
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
Lucene::InvertedDocConsumerPerFieldPtr
boost::shared_ptr< InvertedDocConsumerPerField > InvertedDocConsumerPerFieldPtr
Definition: LuceneTypes.h:164

clucene.sourceforge.net