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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LogByteSizeMergePolicy.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 LOGBYTESIZEMERGEPOLICY_H
8 #define LOGBYTESIZEMERGEPOLICY_H
9 
10 #include "LogMergePolicy.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI LogByteSizeMergePolicy : public LogMergePolicy {
17 public:
19  virtual ~LogByteSizeMergePolicy();
20 
22 
23 public:
25  static const double DEFAULT_MIN_MERGE_MB;
26 
29  static const double DEFAULT_MAX_MERGE_MB;
30 
31 protected:
32  virtual int64_t size(const SegmentInfoPtr& info);
33 
34 public:
42  void setMaxMergeMB(double mb);
43 
46  double getMaxMergeMB();
47 
53  void setMinMergeMB(double mb);
54 
56  double getMinMergeMB();
57 };
58 
59 }
60 
61 #endif

clucene.sourceforge.net