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
TermVectorsTermsWriterPerField.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 TERMVECTORSTERMSWRITERPERFIELD_H
8 #define TERMVECTORSTERMSWRITERPERFIELD_H
9
10 #include "TermsHashConsumerPerField.h"
11
12 namespace Lucene
13 {
14 class TermVectorsTermsWriterPerField : public TermsHashConsumerPerField
15 {
16 public:
17 TermVectorsTermsWriterPerField(TermsHashPerFieldPtr termsHashPerField, TermVectorsTermsWriterPerThreadPtr perThread, FieldInfoPtr fieldInfo);
18 virtual ~TermVectorsTermsWriterPerField();
19
20 LUCENE_CLASS(TermVectorsTermsWriterPerField);
21
22 public:
23 TermVectorsTermsWriterPerThreadWeakPtr _perThread;
24 TermsHashPerFieldWeakPtr _termsHashPerField;
25 TermVectorsTermsWriterWeakPtr _termsWriter;
26 FieldInfoPtr fieldInfo;
27 DocStateWeakPtr _docState;
28 FieldInvertStateWeakPtr _fieldState;
29
30 bool doVectors;
31 bool doVectorPositions;
32 bool doVectorOffsets;
33
34 int32_t maxNumPostings;
35 OffsetAttributePtr offsetAttribute;
36
37 public:
38 virtual int32_t getStreamCount();
39 virtual bool start(Collection<FieldablePtr> fields, int32_t count);
40 virtual void abort();
41
44 virtual void finish();
45
46 void shrinkHash();
47
48 virtual void start(FieldablePtr field);
49 virtual void newTerm(RawPostingListPtr p0);
50 virtual void addTerm(RawPostingListPtr p0);
51 virtual void skippingLongTerm();
52 };
53 }
54
55 #endif

clucene.sourceforge.net