Class MockRandomMergePolicy
MergePolicy that makes random decisions for testing.
Implements
System.IDisposable
Inherited Members
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
| Improve this Doc View SourceFindForcedDeletesMerges(SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindForcedDeletesMerges(SegmentInfos segmentInfos)
Parameters
Type | Name | Description |
---|---|---|
SegmentInfos | segmentInfos |
Returns
Type | Description |
---|---|
MergePolicy.MergeSpecification |
Overrides
| Improve this Doc View SourceFindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Nullable<Boolean>>)
Declaration
public override MergePolicy.MergeSpecification FindForcedMerges(SegmentInfos segmentInfos, int maxSegmentCount, IDictionary<SegmentCommitInfo, bool?> segmentsToMerge)
Parameters
Type | Name | Description |
---|---|---|
SegmentInfos | segmentInfos | |
System.Int32 | maxSegmentCount | |
System.Collections.Generic.IDictionary<SegmentCommitInfo, System.Nullable<System.Boolean>> | segmentsToMerge |
Returns
Type | Description |
---|---|
MergePolicy.MergeSpecification |
Overrides
MergePolicy.FindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Nullable<Boolean>>)
|
Improve this Doc
View Source
FindMerges(MergeTrigger, SegmentInfos)
Declaration
public override MergePolicy.MergeSpecification FindMerges(MergeTrigger mergeTrigger, SegmentInfos segmentInfos)
Parameters
Type | Name | Description |
---|---|---|
MergeTrigger | mergeTrigger | |
SegmentInfos | segmentInfos |
Returns
Type | Description |
---|---|
MergePolicy.MergeSpecification |
Overrides
| Improve this Doc View SourceUseCompoundFile(SegmentInfos, SegmentCommitInfo)
Declaration
public override bool UseCompoundFile(SegmentInfos infos, SegmentCommitInfo mergedInfo)
Parameters
Type | Name | Description |
---|---|---|
SegmentInfos | infos | |
SegmentCommitInfo | mergedInfo |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.IDisposable