
com.groupbyinc.flux.cluster.routing.RoutingTable$Builder.class Maven / Gradle / Ivy
???? 3< 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder java/lang/Object RoutingTable.java 0com/groupbyinc/flux/cluster/routing/RoutingTable Builder =com/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable Acom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards
0com/groupbyinc/flux/cluster/routing/RoutingNodes UnassignedShards 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State version J indicesRouting Ljava/util/Map; ZLjava/util/Map; ()V
5com/groupbyinc/flux/common/google/common/collect/Maps
newHashMap ()Ljava/util/HashMap; " #
! $ & this :Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; 5(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)V
access$100 5(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)J + ,
- / iterator I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator; 1 2
3 java/util/Iterator 5 hasNext ()Z 7 8 6 9 next ()Ljava/lang/Object; ; < 6 = index ()Ljava/lang/String; ? @
A
java/util/Map C put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; E F D G indexRoutingTable 7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; routingTable 2Lcom/groupbyinc/flux/cluster/routing/RoutingTable; updateNodes n(Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; K O
P ()J R
S ()Ljava/util/Iterator; 1 U
V /com/groupbyinc/flux/cluster/routing/RoutingNode X
Y V 0com/groupbyinc/flux/cluster/routing/ShardRouting [ initializing ] 8
\ ^ relocatingNodeId ` @
\ a
\ A get &(Ljava/lang/Object;)Ljava/lang/Object; d e D f (Ljava/lang/String;)V h
i java/lang/String k K(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; ? m
n id ()I p q
\ r shard ?(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; t u
v addShard ?(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; x y
z
unassigned E()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards; | }
~ ignored ()Ljava/util/List; ? ?
? :com/groupbyinc/flux/common/google/common/collect/Iterables ? concat >(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; ? ?
? ? java/lang/Iterable ? ? V values ()Ljava/util/Collection; ? ? D ? java/util/Collection ? ? V add {(Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
? Ljava/lang/String; indexBuilder ?Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; refData