Package org.apache.lucene.index
Class MergeScheduler
- java.lang.Object
-
- org.apache.lucene.index.MergeScheduler
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Cloneable
- Direct Known Subclasses:
ConcurrentMergeScheduler
,NoMergeScheduler
,SerialMergeScheduler
public abstract class MergeScheduler extends java.lang.Object implements java.io.Closeable, java.lang.Cloneable
Expert:
IndexWriter
uses an instance implementing this interface to execute the merges selected by aMergePolicy
. The default MergeScheduler isConcurrentMergeScheduler
.Implementers of sub-classes should make sure that
clone()
returns an independent instance able to work with anyIndexWriter
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MergeScheduler
clone()
abstract void
close()
Close this MergeScheduler.abstract void
merge(IndexWriter writer)
Run the merges provided byIndexWriter.getNextMerge()
.
-
-
-
Method Detail
-
merge
public abstract void merge(IndexWriter writer) throws java.io.IOException
Run the merges provided byIndexWriter.getNextMerge()
.- Throws:
java.io.IOException
-
close
public abstract void close() throws java.io.IOException
Close this MergeScheduler.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
clone
public MergeScheduler clone()
-
-