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
AlcoholicMergePolicy
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class AlcoholicMergePolicy : LogMergePolicy
Constructors
| Improve this Doc View SourceAlcoholicMergePolicy(TimeZoneInfo, Random)
Declaration
public AlcoholicMergePolicy(TimeZoneInfo timeZone, Random random)
Parameters
Type | Name | Description |
---|---|---|
TimeZoneInfo | timeZone | |
Random | random |
Methods
| Improve this Doc View SourceSize(SegmentCommitInfo)
Declaration
protected override long Size(SegmentCommitInfo info)
Parameters
Type | Name | Description |
---|---|---|
SegmentCommitInfo | info |
Returns
Type | Description |
---|---|
System.Int64 |