com.groupbyinc.flux.index.MergeSchedulerConfig.class Maven / Gradle / Ivy
???? 4 ? .com/groupbyinc/flux/index/MergeSchedulerConfig java/lang/Object MergeSchedulerConfig.java 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup MAX_THREAD_COUNT_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; BLcom/groupbyinc/flux/common/settings/Setting; MAX_MERGE_COUNT_SETTING AUTO_THROTTLE_SETTING BLcom/groupbyinc/flux/common/settings/Setting; autoThrottle Z maxThreadCount I
maxMergeCount ,(Lcom/groupbyinc/flux/index/IndexSettings;)V ()V
'com/groupbyinc/flux/index/IndexSettings " getValue A(Lcom/groupbyinc/flux/common/settings/Setting;)Ljava/lang/Object; $ %
# & java/lang/Integer ( intValue ()I * +
) , . setMaxThreadAndMergeCount (II)V 0 1
2 4 java/lang/Boolean 6 booleanValue ()Z 8 9
7 : < this 0Lcom/groupbyinc/flux/index/MergeSchedulerConfig;
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; maxThread maxMerge isAutoThrottle setAutoThrottle (Z)V getMaxThreadCount H "java/lang/IllegalArgumentException J #maxThreadCount should be at least 1 L (Ljava/lang/String;)V N
K O "maxMergeCount should be at least 1 Q java/lang/StringBuilder S
T maxThreadCount (= V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; X Y
T Z (I)Ljava/lang/StringBuilder; X \
T ] ) should be <= maxMergeCount (= _ ) a toString ()Ljava/lang/String; c d
T e g getMaxMergeCount lambda$static$3 '(Ljava/lang/String;)Ljava/lang/Integer; %index.merge.scheduler.max_merge_count l parseInt ((Ljava/lang/String;ILjava/lang/String;)I n o
p valueOf (I)Ljava/lang/Integer; r s
) t s Ljava/lang/String; lambda$static$2 B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/String; get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; z {
| (I)Ljava/lang/String; c ~
) .Lcom/groupbyinc/flux/common/settings/Settings; lambda$static$1 &index.merge.scheduler.max_thread_count ? lambda$static$0 6com/groupbyinc/flux/common/util/concurrent/EsExecutors ? numberOfProcessors 1(Lcom/groupbyinc/flux/common/settings/Settings;)I ? ?
? ? java/lang/Math ? min (II)I ? ?
? ? max ? ?
? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? y
? ? y apply ()Ljava/util/function/Function; ? ? ? ? k
? ? k ? Dynamic 6Lcom/groupbyinc/flux/common/settings/Setting$Property; ? ? ?
IndexScope ? ? ? ?(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V ?
? x y
? ? ? j k
? ? ? #index.merge.scheduler.auto_throttle ? boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting; ? ?
? Signature Code LocalVariableTable LineNumberTable
StackMapTable BootstrapMethods
SourceFile InnerClasses 1 ? ? ? B B B ? ? 8*? +? !? '? )? -=+? /? '? )? ->*? 3*+? 5? '? 7? ;? =? ? * 8 > ? 8 @ A &