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 // 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 STOREDFIELDSWRITER_H
8 #define STOREDFIELDSWRITER_H
9 
10 #include "DocumentsWriter.h"
11 
12 namespace Lucene
13 {
16  {
17  public:
19  virtual ~StoredFieldsWriter();
20 
22 
23  public:
27  int32_t lastDocID;
28 
30  int32_t freeCount;
31  int32_t allocCount;
32 
33  public:
35  void flush(SegmentWriteStatePtr state);
38  void abort();
39 
41  void fill(int32_t docID);
42 
44  bool freeRAM();
45  void free(StoredFieldsWriterPerDocPtr perDoc);
46 
47  protected:
48  void initFieldsWriter();
49  };
50 
52  {
53  public:
55  virtual ~StoredFieldsWriterPerDoc();
56 
58 
59  protected:
61 
62  public:
65  int32_t numStoredFields;
66 
67  public:
68  void reset();
69  virtual void abort();
70  virtual int64_t sizeInBytes();
71  virtual void finish();
72  };
73 }
74 
75 #endif

clucene.sourceforge.net