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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TermsHash.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 TERMSHASH_H
8 #define TERMSHASH_H
9 
10 #include "InvertedDocConsumer.h"
11 
12 namespace Lucene
13 {
19  {
20  public:
22  virtual ~TermsHash();
23 
25 
26  public:
29  int32_t bytesPerPosting;
33 
34  protected:
38 
39  public:
42  virtual TermsHashPerThreadPtr addThread(DocInverterPerThreadPtr docInverterPerThread, TermsHashPerThreadPtr primaryPerThread);
43 
45 
49  virtual void abort();
50 
51  void shrinkFreePostings(MapInvertedDocConsumerPerThreadCollectionInvertedDocConsumerPerField threadsAndFields, SegmentWriteStatePtr state);
52 
54  virtual void closeDocStore(SegmentWriteStatePtr state);
55 
57  virtual void flush(MapInvertedDocConsumerPerThreadCollectionInvertedDocConsumerPerField threadsAndFields, SegmentWriteStatePtr state);
58 
60  virtual bool freeRAM();
61 
62  void recyclePostings(Collection<RawPostingListPtr> postings, int32_t numPostings);
63 
65  };
66 }
67 
68 #endif

clucene.sourceforge.net