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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
StoredFieldsWriter.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 STOREDFIELDSWRITER_H
8 #define STOREDFIELDSWRITER_H
9 
10 #include "DocumentsWriter.h"
11 
12 namespace Lucene {
13 
16 public:
18  virtual ~StoredFieldsWriter();
19 
21 
22 public:
26  int32_t lastDocID;
27 
29  int32_t freeCount;
30  int32_t allocCount;
31 
32 public:
34  void flush(const SegmentWriteStatePtr& state);
35  void closeDocStore(const SegmentWriteStatePtr& state);
37  void abort();
38 
40  void fill(int32_t docID);
41 
42  void finishDocument(const StoredFieldsWriterPerDocPtr& perDoc);
43  bool freeRAM();
44  void free(const StoredFieldsWriterPerDocPtr& perDoc);
45 
46 protected:
47  void initFieldsWriter();
48 };
49 
51 public:
53  virtual ~StoredFieldsWriterPerDoc();
54 
56 
57 protected:
59 
60 public:
63  int32_t numStoredFields;
64 
65 public:
66  void reset();
67  virtual void abort();
68  virtual int64_t sizeInBytes();
69  virtual void finish();
70 };
71 
72 }
73 
74 #endif

clucene.sourceforge.net