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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DocFieldConsumers.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 DOCFIELDCONSUMERS_H
8 #define DOCFIELDCONSUMERS_H
9 
10 #include "DocFieldConsumer.h"
11 #include "DocumentsWriter.h"
12 
13 namespace Lucene
14 {
17  {
18  public:
20  virtual ~DocFieldConsumers();
21 
23 
24  public:
27 
29  int32_t freeCount;
30  int32_t allocCount;
31 
32  public:
34 
36  virtual void flush(MapDocFieldConsumerPerThreadCollectionDocFieldConsumerPerField threadsAndFields, SegmentWriteStatePtr state);
37 
39  virtual void closeDocStore(SegmentWriteStatePtr state);
40 
42  virtual bool freeRAM();
43 
45  virtual DocFieldConsumerPerThreadPtr addThread(DocFieldProcessorPerThreadPtr docFieldProcessorPerThread);
46 
49  };
50 
52  {
53  public:
55  virtual ~DocFieldConsumersPerDoc();
56 
58 
59  protected:
61 
62  public:
65 
66  public:
67  virtual int64_t sizeInBytes();
68  virtual void finish();
69  virtual void abort();
70  };
71 }
72 
73 #endif

clucene.sourceforge.net