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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermVectorsTermsWriterPerThread.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 TERMVECTORSTERMSWRITERPERTHREAD_H
8 #define TERMVECTORSTERMSWRITERPERTHREAD_H
9
10 #include "TermsHashConsumerPerThread.h"
11
12 namespace Lucene
13 {
14 class TermVectorsTermsWriterPerThread : public TermsHashConsumerPerThread
15 {
16 public:
17 TermVectorsTermsWriterPerThread(TermsHashPerThreadPtr termsHashPerThread, TermVectorsTermsWriterPtr termsWriter);
18 virtual ~TermVectorsTermsWriterPerThread();
19
20 LUCENE_CLASS(TermVectorsTermsWriterPerThread);
21
22 public:
23 TermVectorsTermsWriterWeakPtr _termsWriter;
24 TermsHashPerThreadWeakPtr _termsHashPerThread;
25 DocStateWeakPtr _docState;
26
27 TermVectorsTermsWriterPerDocPtr doc;
28 ByteSliceReaderPtr vectorSliceReader;
29 Collection<UTF8ResultPtr> utf8Results;
30 String lastVectorFieldName;
31
32 public:
33 virtual void startDocument();
34 virtual DocWriterPtr finishDocument();
35 virtual TermsHashConsumerPerFieldPtr addField(TermsHashPerFieldPtr termsHashPerField, FieldInfoPtr fieldInfo);
36 virtual void abort();
37
39 bool clearLastVectorFieldName();
40 bool vectorFieldsInOrder(FieldInfoPtr fi);
41 };
42 }
43
44 #endif

clucene.sourceforge.net