|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.MergeScheduler
public abstract class MergeScheduler
Expert: IndexWriter
uses an instance
implementing this interface to execute the merges
selected by a MergePolicy
. The default
MergeScheduler is ConcurrentMergeScheduler
.
Implementers of sub-classes should make sure that clone()
returns an independent instance able to work with any IndexWriter
instance.
Constructor Summary | |
---|---|
protected |
MergeScheduler()
Sole constructor. |
Method Summary | |
---|---|
MergeScheduler |
clone()
|
abstract void |
close()
Close this MergeScheduler. |
abstract void |
merge(IndexWriter writer)
Run the merges provided by IndexWriter.getNextMerge() . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MergeScheduler()
Method Detail |
---|
public abstract void merge(IndexWriter writer) throws IOException
IndexWriter.getNextMerge()
.
IOException
public abstract void close() throws IOException
close
in interface Closeable
IOException
public MergeScheduler clone()
clone
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |