com.groupbyinc.flux.cluster.routing.IndexRoutingTable.class Maven / Gradle / Ivy
???? 4? 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable ?Lcom/groupbyinc/flux/cluster/AbstractDiffable;Ljava/lang/Iterable; ,com/groupbyinc/flux/cluster/AbstractDiffable java/lang/Iterable IndexRoutingTable.java =com/groupbyinc/flux/cluster/routing/IndexRoutingTable$Builder Builder 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type 2com/groupbyinc/flux/cluster/routing/RecoverySource Type Bcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable$Builder :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup index !Lcom/groupbyinc/flux/index/Index; shuffler 3Lcom/groupbyinc/flux/cluster/routing/ShardShuffler; shards 8Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; vLcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap; allActiveShards Ljava/util/List; DLjava/util/List; \(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/common/collect/ImmutableOpenIntMap;)V ()V ) +
, . 9com/groupbyinc/flux/cluster/routing/RotationShardShuffler 0 %com/groupbyinc/flux/common/Randomness 2 get ()Ljava/util/Random; 4 5
3 6 java/util/Random 8 nextInt ()I : ;
9 < (I)V ) >
1 ? ! " A # $ C java/util/ArrayList E
F , 6com/groupbyinc/flux/common/collect/ImmutableOpenIntMap H iterator ()Ljava/util/Iterator; J K
I L com/groupbyinc/flux/index/Index N java/util/List P java/util/Iterator R hasNext ()Z T U S V next ()Ljava/lang/Object; X Y S Z Dcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntObjectCursor \ value Ljava/lang/Object; ^ _ ] `
L 0com/groupbyinc/flux/cluster/routing/ShardRouting c active e U
d f add (Ljava/lang/Object;)Z h i Q j java/util/Collections l unmodifiableList "(Ljava/util/List;)Ljava/util/List; n o
m p &