com.groupbyinc.flux.action.bulk.BulkResponse.class Maven / Gradle / Ivy
???? 4] ,com/groupbyinc/flux/action/bulk/BulkResponse ?Lcom/groupbyinc/flux/action/ActionResponse;Ljava/lang/Iterable;Lcom/groupbyinc/flux/common/xcontent/StatusToXContentObject; )com/groupbyinc/flux/action/ActionResponse java/lang/Iterable :com/groupbyinc/flux/common/xcontent/StatusToXContentObject BulkResponse.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent
Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup ITEMS Ljava/lang/String; items ERRORS errors TOOK took " INGEST_TOOK ingest_took % NO_INGEST_TOOK J???????? responses 3[Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; tookInMillis ingestTookInMillis ()V / 0
1 this .Lcom/groupbyinc/flux/action/bulk/BulkResponse; 7([Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;J)V 8([Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;JJ)V / 6
7 + , 9 - ( ; . ( = getTook -()Lcom/groupbyinc/flux/common/unit/TimeValue; )com/groupbyinc/flux/common/unit/TimeValue A (J)V / C
B D
getIngestTook getIngestTookInMillis ()J hasFailures ()Z , 0com/groupbyinc/flux/action/bulk/BulkItemResponse L isFailed N J
M O response 2Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; buildFailureMessage ()Ljava/lang/String; java/lang/StringBuilder U
V 1 failure in bulk execution: X append -(Ljava/lang/String;)Ljava/lang/StringBuilder; Z [
V \
[ ^ (I)Ljava/lang/StringBuilder; Z `
V a
]: index [ c getIndex e T
M f ], type [ h getType j T
M k ], id [ m getId o T
M p ], message [ r getFailureMessage t T
M u ] w toString y T
V z i I sb Ljava/lang/StringBuilder; getItems 5()[Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; iterator ()Ljava/util/Iterator; java/util/Arrays ? stream .([Ljava/lang/Object;)Ljava/util/stream/Stream; ? ?
? ? java/util/stream/Stream ? ? ? ? ? readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? ? ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readVInt ()I ? ?
? ? readBulkItem f(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; ? ?
M ? readVLong ? H
? ? readZLong ? H
? ? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V ? ?
? 1com/groupbyinc/flux/common/io/stream/StreamOutput ? writeVInt (I)V ? ?
? ?
M ?
writeVLong ? C
? ?
writeZLong ? C
? ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; status '()Lcom/groupbyinc/flux/rest/RestStatus; #com/groupbyinc/flux/rest/RestStatus ? OK %Lcom/groupbyinc/flux/rest/RestStatus; ? ? ? ?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? field J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? I J
? J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ?
startArray I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ?
? java/util/Iterator ? hasNext ? J ? ? next ()Ljava/lang/Object; ? ? ? ? ? ?
M ? endArray ? ?
? ? endObject ? ?
? ? item builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent d(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/action/bulk/BulkResponse; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ?
? ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; get S(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/function/Supplier;
7com/groupbyinc/flux/common/xcontent/XContentParserUtils ensureExpectedToken ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/util/function/Supplier;)V
java/util/ArrayList
1 currentName T java/util/List java/lang/String
END_OBJECT ?
FIELD_NAME" ? # isValue% J
& equals (Ljava/lang/Object;)Z()
* longValue, H - throwUnknownField K(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentLocation;)V/0
1 START_ARRAY3 ? 4 END_ARRAY6 ? 7 size9 ?: i(Lcom/groupbyinc/flux/common/xcontent/XContentParser;I)Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; ?<
M= add?)@ throwUnknownToken s(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentLocation;)VBC
D toArray (([Ljava/lang/Object;)[Ljava/lang/Object;FGH parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token
ingestTook DLjava/util/List; Ljava/util/List; currentFieldName
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable Signature J()Ljava/util/Iterator;
Exceptions LocalVariableTypeTable BootstrapMethods
SourceFile InnerClasses ! Q Q ! Q # $ Q &