Class MergeScheduler
Expert: IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePolicy. The default MergeScheduler is ConcurrentMergeScheduler.
Implementers of sub-classes should make sure that Clone() returns an independent instance able to work with any IndexWriter instance.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.dll
Syntax
public abstract class MergeScheduler : IMergeScheduler, IDisposable
Constructors
MergeScheduler()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected MergeScheduler()
Methods
Clone()
Expert: IndexWriter uses an instance implementing this interface to execute the merges selected by a MergePolicy. The default MergeScheduler is ConcurrentMergeScheduler.
Implementers of sub-classes should make sure that Clone() returns an independent instance able to work with any IndexWriter instance.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
object |
Dispose()
Dispose this MergeScheduler.
Declaration
public void Dispose()
Dispose(bool)
Dispose this MergeScheduler.
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Merge(IndexWriter, MergeTrigger, bool)
Run the merges provided by GetNextMerge().
Declaration
public abstract void Merge(IndexWriter writer, MergeTrigger trigger, bool newMergesFound)
Parameters
Type | Name | Description |
---|---|---|
IndexWriter | writer | the IndexWriter to obtain the merges from. |
MergeTrigger | trigger | the MergeTrigger that caused this merge to happen |
bool | newMergesFound |
|