public abstract class MergeScheduler extends Object implements Closeable
Expert: IndexWriter
uses an instance
implementing this interface to execute the merges
selected by a MergePolicy
. The default
MergeScheduler is ConcurrentMergeScheduler
.
Modifier | Constructor and Description |
---|---|
protected |
MergeScheduler()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.