Package org.apache.lucene.index
Class SerialMergeScheduler
- java.lang.Object
-
- org.apache.lucene.index.MergeScheduler
-
- org.apache.lucene.index.SerialMergeScheduler
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
public class SerialMergeScheduler extends MergeScheduler
AMergeScheduler
that simply does each merge sequentially, using the current thread.
-
-
Constructor Summary
Constructors Constructor Description SerialMergeScheduler()
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this MergeScheduler.void
merge(IndexWriter writer)
Just do the merges in sequence.-
Methods inherited from class org.apache.lucene.index.MergeScheduler
clone
-
-
-
-
Method Detail
-
merge
public void merge(IndexWriter writer) throws java.io.IOException
Just do the merges in sequence. We do this "synchronized" so that even if the application is using multiple threads, only one merge may run at a time.- Specified by:
merge
in classMergeScheduler
- Throws:
java.io.IOException
-
close
public void close()
Description copied from class:MergeScheduler
Close this MergeScheduler.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classMergeScheduler
-
-