public abstract class MergeScheduler extends Object implements Closeable, Cloneable
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.
Modifier | Constructor and Description |
---|---|
protected |
MergeScheduler()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
MergeScheduler |
clone() |
abstract void |
close()
Close this MergeScheduler.
|
abstract void |
merge(IndexWriter writer)
Run the merges provided by
IndexWriter.getNextMerge() . |
protected MergeScheduler()
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()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.