20 namespace Lucene.Net.Index
31 public const double DEFAULT_MIN_MERGE_MB = 1.6;
36 public static readonly
long DEFAULT_MAX_MERGE_MB =
long.MaxValue;
41 minMergeSize = (long) (DEFAULT_MIN_MERGE_MB * 1024 * 1024);
44 maxMergeSize = DEFAULT_MAX_MERGE_MB;
46 protected internal override long Size(
SegmentInfo info)
48 return SizeBytes(info);
51 protected override void Dispose(
bool disposing)
69 public virtual double MaxMergeMB
71 get {
return maxMergeSize/1024d/1024d; }
75 maxMergeSize = (long) (value*1024*1024);
78 maxMergeSize = DEFAULT_MAX_MERGE_MB;
93 public virtual double MinMergeMB
95 get {
return ((
double) minMergeSize)/1024/1024; }
96 set { minMergeSize = (long) (value*1024*1024); }