Class MockRandomMergePolicy
Lucene.Net.Index.MergePolicy that makes random decisions for testing.
Inheritance
System.Object
Lucene.Net.Index.MergePolicy
MockRandomMergePolicy
Implements
System.IDisposable
Inherited Members
Lucene.Net.Index.MergePolicy.DEFAULT_NO_CFS_RATIO
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.Size(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)
System.Object.ToString()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockRandomMergePolicy : MergePolicy, IDisposable
Constructors
| Improve this Doc View SourceMockRandomMergePolicy(Random)
Declaration
public MockRandomMergePolicy(Random random)
Parameters
Type | Name | Description |
---|---|---|
System.Random | random |
Methods
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
Lucene.Net.Index.MergePolicy.Dispose(System.Boolean)
|
Improve this Doc
View Source
FindForcedDeletesMerges(SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindForcedDeletesMerges(SegmentInfos segmentInfos)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentInfos | segmentInfos |
Returns
Type | Description |
---|---|
Lucene.Net.Index.MergePolicy.MergeSpecification |
Overrides
Lucene.Net.Index.MergePolicy.FindForcedDeletesMerges(Lucene.Net.Index.SegmentInfos)
|
Improve this Doc
View Source
FindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Boolean>)
Declaration
public override MergePolicy.MergeSpecification FindForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, IDictionary<SegmentCommitInfo, bool> segmentsToMerge)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentInfos | segmentInfos | |
System.Int32 | maxSegmentCount | |
System.Collections.Generic.IDictionary<Lucene.Net.Index.SegmentCommitInfo, System.Boolean> | segmentsToMerge |
Returns
Type | Description |
---|---|
Lucene.Net.Index.MergePolicy.MergeSpecification |
Overrides
Lucene.Net.Index.MergePolicy.FindForcedMerges(Lucene.Net.Index.SegmentInfos, System.Int32, System.Collections.Generic.IDictionary<Lucene.Net.Index.SegmentCommitInfo, System.Boolean>)
|
Improve this Doc
View Source
FindMerges(MergeTrigger, SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.MergeTrigger | mergeTrigger | |
Lucene.Net.Index.SegmentInfos | segmentInfos |
Returns
Type | Description |
---|---|
Lucene.Net.Index.MergePolicy.MergeSpecification |
Overrides
Lucene.Net.Index.MergePolicy.FindMerges(Lucene.Net.Index.MergeTrigger, Lucene.Net.Index.SegmentInfos)
|
Improve this Doc
View Source
UseCompoundFile(SegmentInfos, SegmentCommitInfo)
Declaration
public override bool UseCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Index.SegmentInfos | infos | |
Lucene.Net.Index.SegmentCommitInfo | mergedInfo |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Lucene.Net.Index.MergePolicy.UseCompoundFile(Lucene.Net.Index.SegmentInfos, Lucene.Net.Index.SegmentCommitInfo)
Implements
System.IDisposable