|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.index.MergeScheduler
org.apache.lucene.index.ConcurrentMergeScheduler
public class ConcurrentMergeScheduler
A MergeScheduler that runs each merge using a
separate thread, up until a maximum number of threads
(setMaxThreadCount(int)) at which points merges are
run in the foreground, serially. This is a simple way
to use concurrency in the indexing process without
having to create and manage application level
threads.
| Constructor Summary | |
|---|---|
ConcurrentMergeScheduler()
|
|
| Method Summary | |
|---|---|
static boolean |
anyUnhandledExceptions()
Used for testing |
void |
close()
Close this MergeScheduler. |
int |
getMaxThreadCount()
Get the max # simultaneous threads that may be running. |
int |
getMergeThreadPriority()
Return the priority that merge threads run at. |
void |
merge(IndexWriter writer)
Run the merges provided by IndexWriter.getNextMerge(). |
void |
setMaxThreadCount(int count)
Sets the max # simultaneous threads that may be running. |
void |
setMergeThreadPriority(int pri)
Return the priority that merge threads run at. |
static void |
setTestMode()
|
void |
sync()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentMergeScheduler()
| Method Detail |
|---|
public void setMaxThreadCount(int count)
public int getMaxThreadCount()
public int getMergeThreadPriority()
public void setMergeThreadPriority(int pri)
public void close()
MergeScheduler
public void sync()
public void merge(IndexWriter writer)
throws CorruptIndexException,
IOException
MergeSchedulerIndexWriter.getNextMerge().
CorruptIndexException
IOExceptionpublic static boolean anyUnhandledExceptions()
public static void setTestMode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||