|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.MergeScheduler org.apache.lucene.index.NoMergeScheduler
public final class NoMergeScheduler
A MergeScheduler
which never executes any merges. It is also a
singleton and can be accessed through INSTANCE
. Use
it if you want to prevent an IndexWriter
from ever executing merges,
irregardless of the MergePolicy
used. Note that you can achieve the
same thing by using NoMergePolicy
, however with
NoMergeScheduler
you also ensure that no unnecessary code of any
MergeScheduler
implementation is ever executed. Hence it is
recommended to use both if you want to disable merges from ever happening.
Field Summary | |
---|---|
static MergeScheduler |
INSTANCE
The single instance of NoMergeScheduler |
Method Summary | |
---|---|
void |
close()
Close this MergeScheduler. |
void |
merge(IndexWriter writer)
Run the merges provided by IndexWriter.getNextMerge() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MergeScheduler INSTANCE
NoMergeScheduler
Method Detail |
---|
public void close()
MergeScheduler
close
in class MergeScheduler
public void merge(IndexWriter writer) throws CorruptIndexException, IOException
MergeScheduler
IndexWriter.getNextMerge()
.
merge
in class MergeScheduler
CorruptIndexException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |