Class AlcoholicMergePolicy
Merge policy for testing, it is like an alcoholic. It drinks (merges) at night, and randomly decides what to drink. During the daytime it sleeps.
If tests pass with this, then they are likely to pass with any bizarro merge policy users might write.
It is a fine bottle of champagne (Ordered by Martijn).
Inheritance
System.Object
Lucene.Net.Index.MergePolicy
Lucene.Net.Index.LogMergePolicy
AlcoholicMergePolicy
Implements
System.IDisposable
Inherited Members
Lucene.Net.Index.LogMergePolicy.LEVEL_LOG_SPAN
Lucene.Net.Index.LogMergePolicy.DEFAULT_MERGE_FACTOR
Lucene.Net.Index.LogMergePolicy.DEFAULT_MAX_MERGE_DOCS
Lucene.Net.Index.LogMergePolicy.DEFAULT_NO_CFS_RATIO
Lucene.Net.Index.LogMergePolicy.m_mergeFactor
Lucene.Net.Index.LogMergePolicy.m_minMergeSize
Lucene.Net.Index.LogMergePolicy.m_maxMergeSize
Lucene.Net.Index.LogMergePolicy.m_maxMergeSizeForForcedMerge
Lucene.Net.Index.LogMergePolicy.m_maxMergeDocs
Lucene.Net.Index.LogMergePolicy.m_calibrateSizeByDeletes
Lucene.Net.Index.LogMergePolicy.IsVerbose
Lucene.Net.Index.LogMergePolicy.Message(System.String)
Lucene.Net.Index.LogMergePolicy.MergeFactor
Lucene.Net.Index.LogMergePolicy.CalibrateSizeByDeletes
Lucene.Net.Index.LogMergePolicy.Dispose(System.Boolean)
Lucene.Net.Index.LogMergePolicy.SizeDocs(Lucene.Net.Index.SegmentCommitInfo)
Lucene.Net.Index.LogMergePolicy.SizeBytes(Lucene.Net.Index.SegmentCommitInfo)
Lucene.Net.Index.LogMergePolicy.IsMerged(Lucene.Net.Index.SegmentInfos, System.Int32, System.Collections.Generic.IDictionary<Lucene.Net.Index.SegmentCommitInfo, System.Nullable<System.Boolean>>)
Lucene.Net.Index.LogMergePolicy.FindForcedMerges(Lucene.Net.Index.SegmentInfos, System.Int32, System.Collections.Generic.IDictionary<Lucene.Net.Index.SegmentCommitInfo, System.Nullable<System.Boolean>>)
Lucene.Net.Index.LogMergePolicy.FindForcedDeletesMerges(Lucene.Net.Index.SegmentInfos)
Lucene.Net.Index.LogMergePolicy.FindMerges(Lucene.Net.Index.MergeTrigger, Lucene.Net.Index.SegmentInfos)
Lucene.Net.Index.LogMergePolicy.MaxMergeDocs
Lucene.Net.Index.LogMergePolicy.ToString()
Lucene.Net.Index.MergePolicy.DEFAULT_MAX_CFS_SEGMENT_SIZE
Lucene.Net.Index.MergePolicy.m_writer
Lucene.Net.Index.MergePolicy.m_noCFSRatio
Lucene.Net.Index.MergePolicy.m_maxCFSSegmentSize
Lucene.Net.Index.MergePolicy.Clone()
Lucene.Net.Index.MergePolicy.SetIndexWriter(Lucene.Net.Index.IndexWriter)
Lucene.Net.Index.MergePolicy.Dispose()
Lucene.Net.Index.MergePolicy.UseCompoundFile(Lucene.Net.Index.SegmentInfos, Lucene.Net.Index.SegmentCommitInfo)
Lucene.Net.Index.MergePolicy.IsMerged(Lucene.Net.Index.SegmentInfos, Lucene.Net.Index.SegmentCommitInfo)
Lucene.Net.Index.MergePolicy.NoCFSRatio
Lucene.Net.Index.MergePolicy.MaxCFSSegmentSizeMB
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AlcoholicMergePolicy : LogMergePolicy, IDisposable
Constructors
| Improve this Doc View SourceAlcoholicMergePolicy(TimeZoneInfo, Random)
Declaration
public AlcoholicMergePolicy(TimeZoneInfo timeZone, Random random)
Parameters
Type | Name | Description |
---|---|---|
System.TimeZoneInfo | timeZone | |
System.Random | random |
Methods
| Improve this Doc View SourceSize(SegmentCommitInfo)
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentCommitInfo | info |
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
Lucene.Net.Index.MergePolicy.Size(Lucene.Net.Index.SegmentCommitInfo)
Implements
System.IDisposable