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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermsHashPerThread.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 TERMSHASHPERTHREAD_H
8 #define TERMSHASHPERTHREAD_H
9 
11 
12 namespace Lucene {
13 
15 public:
16  TermsHashPerThread(const DocInverterPerThreadPtr& docInverterPerThread, const TermsHashPtr& termsHash, const TermsHashPtr& nextTermsHash, const TermsHashPerThreadPtr& primaryPerThread);
17  virtual ~TermsHashPerThread();
18 
20 
21 public:
28 
32  bool primary;
34 
37 
38 public:
39  virtual void initialize();
40 
41  virtual InvertedDocConsumerPerFieldPtr addField(const DocInverterPerFieldPtr& docInverterPerField, const FieldInfoPtr& fieldInfo);
42  virtual void abort();
43 
45  void morePostings();
46 
47  virtual void startDocument();
48  virtual DocWriterPtr finishDocument();
49 
51  void reset(bool recyclePostings);
52 
53 protected:
54  static bool noNullPostings(Collection<RawPostingListPtr> postings, int32_t count, const String& details);
55 };
56 
57 }
58 
59 #endif

clucene.sourceforge.net