Documentation of 'org.apache.lucene.index.ConcurrentMergeScheduler' Java class
ConcurrentMergeScheduler
org.apache.lucene.index

Class ConcurrentMergeScheduler



  • public class ConcurrentMergeScheduler
    extends MergeScheduler
    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 Detail

      • ConcurrentMergeScheduler

        public ConcurrentMergeScheduler()
    • Method Detail

      • setMaxThreadCount

        public void setMaxThreadCount(int count)
        Sets the max # simultaneous threads that may be running. If a merge is necessary yet we already have this many threads running, the merge is returned back to IndexWriter so that it runs in the "foreground".
      • getMaxThreadCount

        public int getMaxThreadCount()
        Get the max # simultaneous threads that may be running. @see #setMaxThreadCount.
      • getMergeThreadPriority

        public int getMergeThreadPriority()
        Return the priority that merge threads run at. By default the priority is 1 plus the priority of (ie, slightly higher priority than) the first thread that calls merge.
      • setMergeThreadPriority

        public void setMergeThreadPriority(int pri)
        Return the priority that merge threads run at.
      • close

        public void close()
        Description copied from class: MergeScheduler
        Close this MergeScheduler.
      • sync

        public void sync()
      • anyUnhandledExceptions

        public static boolean anyUnhandledExceptions()
        Used for testing
      • setTestMode

        public static void setTestMode()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.