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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DocInverterPerThread.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 DOCINVERTERPERTHREAD_H
8 #define DOCINVERTERPERTHREAD_H
9 
11 #include "AttributeSource.h"
12 
13 namespace Lucene {
14 
18 public:
19  DocInverterPerThread(const DocFieldProcessorPerThreadPtr& docFieldProcessorPerThread, const DocInverterPtr& docInverter);
20  virtual ~DocInverterPerThread();
21 
23 
24 public:
29 
32 
35 
36 public:
37  virtual void initialize();
38  virtual void startDocument();
39  virtual DocWriterPtr finishDocument();
40  virtual void abort();
42 };
43 
45 public:
48 
50 
51 public:
54 
55 public:
56  void reinit(const String& stringValue, int32_t startOffset, int32_t endOffset);
57 };
58 
59 }
60 
61 #endif
boost::shared_ptr< DocFieldProcessorPerThread > DocFieldProcessorPerThreadPtr
Definition: LuceneTypes.h:117
virtual DocWriterPtr finishDocument()
DocInverterWeakPtr _docInverter
Definition: DocInverterPerThread.h:22
ReusableStringReaderPtr stringReader
Used to read a string value for a field.
Definition: DocInverterPerThread.h:34
boost::weak_ptr< DocInverter > DocInverterWeakPtr
Definition: LuceneTypes.h:119
TermAttributePtr termAttribute
Definition: DocInverterPerThread.h:49
SingleTokenAttributeSourcePtr singleToken
Definition: DocInverterPerThread.h:28
InvertedDocConsumerPerThreadPtr consumer
Definition: DocInverterPerThread.h:26
This is a DocFieldConsumer that inverts each field, separately, from a Document, and accepts a Invert...
Definition: DocInverterPerThread.h:17
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition: LuceneTypes.h:58
virtual void initialize()
Called directly after instantiation to create objects that depend on this object being fully construc...
boost::shared_ptr< DocFieldConsumerPerField > DocFieldConsumerPerFieldPtr
Definition: LuceneTypes.h:109
Definition: DocFieldConsumerPerThread.h:14
boost::shared_ptr< FieldInfo > FieldInfoPtr
Definition: LuceneTypes.h:126
boost::shared_ptr< ReusableStringReader > ReusableStringReaderPtr
Definition: LuceneTypes.h:207
boost::shared_ptr< FieldInvertState > FieldInvertStatePtr
Definition: LuceneTypes.h:128
boost::shared_ptr< InvertedDocEndConsumerPerThread > InvertedDocEndConsumerPerThreadPtr
Definition: LuceneTypes.h:168
virtual DocFieldConsumerPerFieldPtr addField(const FieldInfoPtr &fi)
InvertedDocEndConsumerPerThreadPtr endConsumer
Definition: DocInverterPerThread.h:27
FieldInvertStatePtr fieldState
Definition: DocInverterPerThread.h:31
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< SingleTokenAttributeSource > SingleTokenAttributeSourcePtr
Definition: LuceneTypes.h:224
boost::shared_ptr< OffsetAttribute > OffsetAttributePtr
Definition: LuceneTypes.h:40
Definition: DocInverterPerThread.h:44
boost::shared_ptr< DocInverter > DocInverterPtr
Definition: LuceneTypes.h:119
DocInverterPerThread(const DocFieldProcessorPerThreadPtr &docFieldProcessorPerThread, const DocInverterPtr &docInverter)
OffsetAttributePtr offsetAttribute
Definition: DocInverterPerThread.h:53
boost::shared_ptr< InvertedDocConsumerPerThread > InvertedDocConsumerPerThreadPtr
Definition: LuceneTypes.h:165
void reinit(const String &stringValue, int32_t startOffset, int32_t endOffset)
DocStatePtr docState
Definition: DocInverterPerThread.h:30
boost::shared_ptr< DocState > DocStatePtr
Definition: LuceneTypes.h:122
boost::shared_ptr< DocWriter > DocWriterPtr
Definition: LuceneTypes.h:125
An AttributeSource contains a list of different Attributes, and methods to add and get them...
Definition: AttributeSource.h:43

clucene.sourceforge.net