com.groupbyinc.flux.cluster.routing.RoutingTable$Builder.class Maven / Gradle / Ivy
???? 47 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder java/lang/Object RoutingTable.java ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap Builder 0com/groupbyinc/flux/cluster/routing/RoutingTable =com/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder
5com/groupbyinc/flux/cluster/routing/IndexRoutingTable Icom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource 2com/groupbyinc/flux/cluster/routing/RecoverySource SnapshotRecoverySource 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 =Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ()V % &
' builder ?()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ) *
+ " # - 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 2 3
4 ! 6 iterator ()Ljava/util/Iterator; 8 9
: java/util/Iterator < hasNext ()Z > ? = @ next ()Ljava/lang/Object; B C = D getIndex #()Lcom/groupbyinc/flux/index/Index; F G
H com/groupbyinc/flux/index/Index J getName ()Ljava/lang/String; L M
K N put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; P Q
R indexRoutingTable 7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; routingTable 2Lcom/groupbyinc/flux/cluster/routing/RoutingTable; updateNodes o(JLcom/groupbyinc/flux/cluster/routing/RoutingNodes;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; java/util/HashMap Z
[ '
:
java/util/Map ^ /com/groupbyinc/flux/cluster/routing/RoutingNode `
a : 0com/groupbyinc/flux/cluster/routing/ShardRouting c initializing e ?
d f relocatingNodeId h M
d i index k G
d l get &(Ljava/lang/Object;)Ljava/lang/Object; n o _ p $(Lcom/groupbyinc/flux/index/Index;)V % r
s _ R addShard s(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; v w
x java/lang/Iterable z
unassigned E()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$UnassignedShards; | }
~ ignored ()Ljava/util/List; ? ?
? 2com/groupbyinc/flux/common/util/iterable/Iterables ? concat +([Ljava/lang/Iterable;)Ljava/lang/Iterable; ? ?
? ? { : values ()Ljava/util/Collection; ? ? _ ? java/util/Collection ? ? : add {(Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
? !Lcom/groupbyinc/flux/index/Index; indexBuilder ?Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; shardRoutingEntry 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; routingNode 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode; routingNodes 2Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; indexRoutingTableBuilders bLjava/util/Map; Ljava/util/Map; shardRoutingEntries HLjava/lang/Iterable; Ljava/lang/Iterable; updateNumberOfReplicas P(I[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; java/lang/IllegalStateException ? 1once build is called the builder cannot be reused ? (Ljava/lang/String;)V % ?
? ? keys A()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectCollection; ? ?
? java/lang/String ? =com/groupbyinc/flux/common/carrotsearch/hppc/ObjectCollection ? toArray &(Ljava/lang/Class;)[Ljava/lang/Object; ? ? ? ? [Ljava/lang/String; ?
p shards :()Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; ? ?
? 6com/groupbyinc/flux/common/collect/ImmutableOpenIntMap ? (I)Ljava/lang/Object; n ?
? ? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? size ()I ? ?
? ?
:
addIndexShard }(Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; ? ?
?
addReplica A()Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder; ? ?
?
removeReplica ? ?
? build 9()Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; ? ?
? indexShardRoutingTable