com.groupbyinc.flux.action.admin.indices.flush.SyncedFlushResponse.class Maven / Gradle / Ivy
???? 4' Bcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse )com/groupbyinc/flux/action/ActionResponse .com/groupbyinc/flux/common/xcontent/ToXContent SyncedFlushResponse.java Icom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse$Fields Fields Ncom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse$ShardCounts ShardCounts 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params java/util/Map$Entry
java/util/Map Entry Mcom/groupbyinc/flux/indices/flush/SyncedFlushService$ShardSyncedFlushResponse 4com/groupbyinc/flux/indices/flush/SyncedFlushService ShardSyncedFlushResponse shardsResultPerIndex Ljava/util/Map; pLjava/util/Map;>; shardCounts PLcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse$ShardCounts; ()V !
" this DLcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse; (Ljava/util/Map;)V java/util/Collections ' unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ) *
( + - values ()Ljava/util/Collection; / 0 1 2com/groupbyinc/flux/common/util/iterable/Iterables 3 flatten *(Ljava/lang/Iterable;)Ljava/lang/Iterable; 5 6
4 7 calculateShardCounts f(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse$ShardCounts; 9 :
; = totalShards ()I total I A B C failedShards failed F B G successfulShards
successful J B K
restStatus '()Lcom/groupbyinc/flux/rest/RestStatus; E @
O #com/groupbyinc/flux/rest/RestStatus Q OK %Lcom/groupbyinc/flux/rest/RestStatus; S T R U CONFLICT W T R X getShardsResultPerIndex ()Ljava/util/Map;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException ^ _shards ` 3com/groupbyinc/flux/common/xcontent/XContentBuilder b startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; d e
c f \ ]
h endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; j k
c l entrySet ()Ljava/util/Set; n o p
java/util/Set r iterator ()Ljava/util/Iterator; t u s v java/util/Iterator x hasNext ()Z z { y | next ()Ljava/lang/Object; ~ y ? getValue ? ? java/util/List ? getKey ? ? java/lang/String ? failures ?
startArray ? e
c ? ? v 9com/groupbyinc/flux/indices/flush/ShardsSyncedFlushResult ? F {
? ? d k
c ? shard ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? 'com/groupbyinc/flux/index/shard/ShardId ? id ? @
? ? field J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
c ? reason ?
failureReason ()Ljava/lang/String; ? ?
? ? [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
c ? E [
? ?
? routing ? y(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/ToXContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
c ? endArray ? k
c ?
shardEntry ?Ljava/util/Map$Entry; Ljava/util/Map$Entry; ?Ljava/util/Map; shardResults ;Lcom/groupbyinc/flux/indices/flush/ShardsSyncedFlushResult; indexResult MLjava/util/List; Ljava/util/List; indexShardCounts
indexEntry vLjava/util/Map$Entry;>; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; java/lang/Iterable ? ? v ? @
? ? I @
? ? size ? @ ? (III)V ?
? result results QLjava/lang/Iterable; Ljava/lang/Iterable; readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ? ?
?
"
? java/util/HashMap ?
? " 0com/groupbyinc/flux/common/io/stream/StreamInput ? readInt ? @
? ?
readString ? ?
? ? java/util/ArrayList ?
? " readShardsSyncedFlushResult o(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/indices/flush/ShardsSyncedFlushResult; ? ?
? ? add (Ljava/lang/Object;)Z ? ? ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? j index Ljava/lang/String; shardsSyncedFlushResults numShards i in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; tmpShardsResultPerIndex numShardsResults writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V
1com/groupbyinc/flux/common/io/stream/StreamOutput writeInt (I)V
writeString (Ljava/lang/String;)V
? ?
? shardsSyncedFlushResult entry out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable s(Ljava/util/Map;>;)V
StackMapTable r()Ljava/util/Map;>;
Exceptions ?(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse$ShardCounts;
SourceFile InnerClasses ! ! 3 *? #? $ %
2 4 &