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).
Implements
Inherited Members
LogMergePolicy.LEVEL_LOG_SPAN
LogMergePolicy.DEFAULT_MERGE_FACTOR
LogMergePolicy.DEFAULT_MAX_MERGE_DOCS
LogMergePolicy.DEFAULT_NO_CFS_RATIO
LogMergePolicy.m_mergeFactor
LogMergePolicy.m_minMergeSize
LogMergePolicy.m_maxMergeSize
LogMergePolicy.m_maxMergeSizeForForcedMerge
LogMergePolicy.m_maxMergeDocs
LogMergePolicy.m_calibrateSizeByDeletes
LogMergePolicy.IsVerbose
LogMergePolicy.MergeFactor
LogMergePolicy.CalibrateSizeByDeletes
LogMergePolicy.SizeDocs(SegmentCommitInfo)
LogMergePolicy.SizeBytes(SegmentCommitInfo)
LogMergePolicy.FindForcedDeletesMerges(SegmentInfos)
LogMergePolicy.FindMerges(MergeTrigger, SegmentInfos)
LogMergePolicy.MaxMergeDocs
LogMergePolicy.ToString()
MergePolicy.DEFAULT_MAX_CFS_SEGMENT_SIZE
MergePolicy.m_writer
MergePolicy.m_noCFSRatio
MergePolicy.m_maxCFSSegmentSize
MergePolicy.Clone()
MergePolicy.SetIndexWriter(IndexWriter)
MergePolicy.Dispose()
MergePolicy.UseCompoundFile(SegmentInfos, SegmentCommitInfo)
MergePolicy.IsMerged(SegmentInfos, SegmentCommitInfo)
MergePolicy.NoCFSRatio
MergePolicy.MaxCFSSegmentSizeMB
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AlcoholicMergePolicy : LogMergePolicy, IDisposable
Constructors
AlcoholicMergePolicy(TimeZoneInfo, Random)
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).
Declaration
public AlcoholicMergePolicy(TimeZoneInfo timeZone, Random random)
Parameters
Type | Name | Description |
---|---|---|
TimeZoneInfo | timeZone | |
Random | random |
Methods
Size(SegmentCommitInfo)
Return the byte size of the provided Lucene.Net.Index.SegmentCommitInfo, pro-rated by percentage of non-deleted documents is set.
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Type | Name | Description |
---|---|---|
SegmentCommitInfo | info |
Returns
Type | Description |
---|---|
long |
Overrides
Lucene.Net.Index.MergePolicy.Size(Lucene.Net.Index.SegmentCommitInfo)