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 static final MergeScheduler INSTANCE
public void close()
public void merge(IndexWriter writer, MergeTrigger trigger, boolean newMergesFound)
IndexWriterto obtain the merges from.
MergeTriggerthat caused this merge to happen
trueiff any new merges were found by the caller otherwise
public MergeScheduler clone()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.