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, regardless 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 void close()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.