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.
Inheritance
System.Object
MergeScheduler
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.dll
Syntax
public abstract class MergeScheduler : IMergeScheduler, IDisposable
Constructors
| Improve this Doc View SourceMergeScheduler()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected MergeScheduler()
Methods
| Improve this Doc View SourceClone()
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object |
Dispose()
Dispose this MergeScheduler.
Declaration
public void Dispose()
Dispose(Boolean)
Dispose this MergeScheduler.
Declaration
protected abstract void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Merge(IndexWriter, MergeTrigger, Boolean)
Run the merges provided by NextMerge().
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 |
System.Boolean | newMergesFound |
|
Implements
System.IDisposable