com.groupbyinc.flux.cluster.metadata.IndexMetaData$1.class Maven / Gradle / Ivy
???? 4 c 4com/groupbyinc/flux/cluster/metadata/IndexMetaData$1 ^Ljava/lang/Object;Lcom/groupbyinc/flux/common/settings/Setting$Validator; java/lang/Object 5com/groupbyinc/flux/common/settings/Setting$Validator IndexMetaData.java 2com/groupbyinc/flux/cluster/metadata/IndexMetaData +com/groupbyinc/flux/common/settings/Setting Validator ()V
this 6Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$1; validate %(Ljava/lang/Integer;Ljava/util/Map;)V INDEX_NUMBER_OF_SHARDS_SETTING -Lcom/groupbyinc/flux/common/settings/Setting;
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/Integer intValue ()I " #
! $ "java/lang/IllegalArgumentException & java/lang/StringBuilder (
) index.number_of_routing_shards [ + append -(Ljava/lang/String;)Ljava/lang/StringBuilder; - .
) / -(Ljava/lang/Object;)Ljava/lang/StringBuilder; - 1
) 2 %] must be >= index.number_of_shards [ 4 ] 6 toString ()Ljava/lang/String; 8 9
) : (Ljava/lang/String;)V <
' = getRoutingFactor (II)I ? @
A numRoutingShards Ljava/lang/Integer; settings fLjava/util/Map;Ljava/lang/Integer;>; Ljava/util/Map; numShards ()Ljava/util/Iterator; java/util/Collections J singleton #(Ljava/lang/Object;)Ljava/util/Set; L M
K N
java/util/Set P iterator R I Q S $(Ljava/lang/Object;Ljava/util/Map;)V
V Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable Signature |(Ljava/lang/Integer;Ljava/util/Map;Ljava/lang/Integer;>;)V Z()Ljava/util/Iterator;>;
SourceFile EnclosingMethod InnerClasses X / *? ? Y Z ? X ? N,? ? ? !N+? %-? %? ,? 'Y? )Y? *,? 0+? 35? 0-? 37? 0? ;? >?-? %+? %? BW? Y * N N C D N E G
A H D [ N E F Z ?
? ? A ? M ? \ ? A ! ] ^ E I X 6 ? ? O? T ? Y Z ? ] _A U X 4
*+? !,? W? Y
Z ? ] ` a
b