com.groupbyinc.flux.common.apache.lucene.index.ConcurrentMergeScheduler.class Maven / Gradle / Ivy
???? 4k Gcom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler =com/groupbyinc/flux/common/apache/lucene/index/MergeScheduler ConcurrentMergeScheduler.java Scom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler$MergeThread MergeThread Icom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler$1 Ccom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge :com/groupbyinc/flux/common/apache/lucene/index/MergePolicy
OneMerge Icom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$MergeException MergeException AUTO_DETECT_MERGES_AND_THREADS I???? DEFAULT_CPU_CORE_COUNT_PROPERTY Ljava/lang/String; lucene.cms.override_core_count DEFAULT_SPINS_PROPERTY lucene.cms.override_spins mergeThreads Ljava/util/List; gLjava/util/List; maxThreadCount
maxMergeCount mergeThreadCount MIN_MERGE_MB_PER_SEC D@ MAX_MERGE_MB_PER_SEC@? START_MB_PER_SEC@4 MIN_BIG_MERGE_MB@I targetMBPerSec doAutoIOThrottle Z forceMergeMBPerSec suppressExceptions $assertionsDisabled ()V 6 7
8 java/util/ArrayList :
; 8 = ? ! A 0 $ C 1 2 E? 3 $ I this ILcom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler; setMaxMergesAndThreads (II)V "java/lang/IllegalArgumentException O Lboth maxMergeCount and maxThreadCount must be AUTO_DETECT_MERGES_AND_THREADS Q (Ljava/lang/String;)V 6 S
P T #maxThreadCount should be at least 1 V "maxMergeCount should be at least 1 X java/lang/StringBuilder Z
[ 8 -maxThreadCount should be <= maxMergeCount (= ] append -(Ljava/lang/String;)Ljava/lang/StringBuilder; _ `
[ a (I)Ljava/lang/StringBuilder; _ c
[ d ) f toString ()Ljava/lang/String; h i
[ j setDefaultMaxMergesAndThreads (Z)V java/lang/Throwable n java/lang/Runtime p
getRuntime ()Ljava/lang/Runtime; r s
q t availableProcessors ()I v w
q x java/lang/System z getProperty &(Ljava/lang/String;)Ljava/lang/String; | }
{ ~ java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ?
? ? java/lang/Math ? min (II)I ? ?
? ? max ? ?
? ? value coreCount spins setForceMergeMBPerSec (D)V updateMergeThreads ? 7
? v getForceMergeMBPerSec ()D enableAutoIOThrottle disableAutoIOThrottle getAutoIOThrottle ()Z getIORateLimitMBPerSec getMaxThreadCount getMaxMergeCount removeMergeThread java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? java/util/List ? size ? w ? ? get (I)Ljava/lang/Object; ? ? ? ? remove ? ? ? ? 5 2 ? java/lang/AssertionError ?
merge thread ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; _ ?
[ ? was not found ? (Ljava/lang/Object;)V 6 ?
? ? i Ljava/lang/Thread; wrapForMerge ?(Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; java/lang/Class ?
isInstance (Ljava/lang/Object;)Z ? ?
? ? @wrapForMerge should be called from MergeThread. Current thread: ? rateLimiter ALcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter; ? ? ? ?(Lcom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/lang/Thread;Lcom/groupbyinc/flux/common/apache/lucene/store/RateLimiter;)V 6 ?
? merge ELcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge; in :Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; mergeThread