public final class NoMergeScheduler extends MergeScheduler
MergeSchedulerwhich never executes any merges. It is also a singleton and can be accessed through
INSTANCE. Use it if you want to prevent an
IndexWriterfrom ever executing merges, irregardless of the
MergePolicyused. Note that you can achieve the same thing by using
NoMergePolicy, however with
NoMergeScheduleryou also ensure that no unnecessary code of any
MergeSchedulerimplementation is ever executed. Hence it is recommended to use both if you want to disable merges from ever happening.
|Modifier and Type||Field and Description|
The single instance of
|Modifier and Type||Method and Description|
Close this MergeScheduler.
Run the merges provided by
public static final MergeScheduler INSTANCE
public void close()
public void merge(IndexWriter writer) throws CorruptIndexException, IOException