public abstract class MergeScheduler extends Object
Expert: IndexWriter
uses an instance
implementing this interface to execute the merges
selected by a MergePolicy
. The default
MergeScheduler is ConcurrentMergeScheduler
.
Constructor and Description |
---|
MergeScheduler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close this MergeScheduler.
|
abstract void |
merge(IndexWriter writer)
Run the merges provided by
IndexWriter.getNextMerge() . |
public abstract void merge(IndexWriter writer) throws CorruptIndexException, IOException
IndexWriter.getNextMerge()
.CorruptIndexException
IOException
public abstract void close() throws CorruptIndexException, IOException
CorruptIndexException
IOException