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

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LogDocMergePolicy.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 LOGDOCMERGEPOLICY_H
8 #define LOGDOCMERGEPOLICY_H
9
10 #include "LogMergePolicy.h"
11
12 namespace Lucene
13 {
16 class LPPAPI LogDocMergePolicy : public LogMergePolicy
17 {
18 public:
19 LogDocMergePolicy(IndexWriterPtr writer);
20 virtual ~LogDocMergePolicy();
21
22 LUCENE_CLASS(LogDocMergePolicy);
23
24 public:
26 static const int32_t DEFAULT_MIN_MERGE_DOCS;
27
28 protected:
29 virtual int64_t size(SegmentInfoPtr info);
30
31 public:
37 void setMinMergeDocs(int32_t minMergeDocs);
38
40 int32_t getMinMergeDocs();
41 };
42 }
43
44 #endif

clucene.sourceforge.net