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 // 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 LOGBYTESIZEMERGEPOLICY_H
8 #define LOGBYTESIZEMERGEPOLICY_H
9 
10 #include "LogMergePolicy.h"
11 
12 namespace Lucene
13 {
16  class LPPAPI LogByteSizeMergePolicy : public LogMergePolicy
17  {
18  public:
20  virtual ~LogByteSizeMergePolicy();
21 
23 
24  public:
26  static const double DEFAULT_MIN_MERGE_MB;
27 
30  static const double DEFAULT_MAX_MERGE_MB;
31 
32  protected:
33  virtual int64_t size(SegmentInfoPtr info);
34 
35  public:
43  void setMaxMergeMB(double mb);
44 
47  double getMaxMergeMB();
48 
54  void setMinMergeMB(double mb);
55 
57  double getMinMergeMB();
58  };
59 }
60 
61 #endif

clucene.sourceforge.net