Class SerialMergeScheduler
A MergeScheduler that simply does each merge sequentially, using the current thread.
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public class SerialMergeScheduler : MergeScheduler, IMergeScheduler, IDisposable
Constructors
SerialMergeScheduler()
Sole constructor.
Declaration
public SerialMergeScheduler()
Methods
Dispose(bool)
Dispose this MergeScheduler.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
Merge(IndexWriter, MergeTrigger, bool)
Just do the merges in sequence. We do this "synchronized" so that even if the application is using multiple threads, only one merge may run at a time.
Declaration
public override void Merge(IndexWriter writer, MergeTrigger trigger, bool newMergesFound)
Parameters
Type | Name | Description |
---|---|---|
IndexWriter | writer | |
MergeTrigger | trigger | |
bool | newMergesFound |