com.groupbyinc.flux.action.bulk.BulkRequest.class Maven / Gradle / Ivy
???? 4 +com/groupbyinc/flux/action/bulk/BulkRequest ?Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/CompositeIndicesRequest;Lcom/groupbyinc/flux/action/support/WriteRequest; (com/groupbyinc/flux/action/ActionRequest 2com/groupbyinc/flux/action/CompositeIndicesRequest /com/groupbyinc/flux/action/support/WriteRequest BulkRequest.java =com/groupbyinc/flux/action/support/WriteRequest$RefreshPolicy
RefreshPolicy 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; REQUEST_OVERHEAD I 2 INDEX 'Lcom/groupbyinc/flux/common/ParseField; TYPE ID ROUTING PARENT OP_TYPE VERSION VERSION_TYPE RETRY_ON_CONFLICT PIPELINE FIELDS SOURCE requests Ljava/util/List; >Ljava/util/List; indices Ljava/util/Set; #Ljava/util/Set; payloads $Ljava/util/List; timeout +Lcom/groupbyinc/flux/common/unit/TimeValue; waitForActiveShards 5Lcom/groupbyinc/flux/action/support/ActiveShardCount;
refreshPolicy ?Lcom/groupbyinc/flux/action/support/WriteRequest$RefreshPolicy; sizeInBytes J ()V 5 6
7 java/util/ArrayList 9
: 7 % & < java/util/HashSet >
? 7 ( ) A + & C 0com/groupbyinc/flux/action/bulk/BulkShardRequest E DEFAULT_TIMEOUT G . F H - . J 3com/groupbyinc/flux/action/support/ActiveShardCount L DEFAULT N 0 M O / 0 Q NONE S 2 T 1 2 V 3 4 X this -Lcom/groupbyinc/flux/action/bulk/BulkRequest; add \([Lcom/groupbyinc/flux/action/DocWriteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; -[Lcom/groupbyinc/flux/action/DocWriteRequest; ^ m(Lcom/groupbyinc/flux/action/DocWriteRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \ `
a request ,Lcom/groupbyinc/flux/action/DocWriteRequest; [(Lcom/groupbyinc/flux/action/DocWriteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; %Lcom/groupbyinc/flux/common/Nullable; -com/groupbyinc/flux/action/index/IndexRequest g p(Lcom/groupbyinc/flux/action/index/IndexRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \ i
j /com/groupbyinc/flux/action/delete/DeleteRequest l r(Lcom/groupbyinc/flux/action/delete/DeleteRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \ n
o /com/groupbyinc/flux/action/update/UpdateRequest q r(Lcom/groupbyinc/flux/action/update/UpdateRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \ s
t "java/lang/IllegalArgumentException v java/lang/StringBuilder x
y 7 No support for request [ { append -(Ljava/lang/String;)Ljava/lang/StringBuilder; } ~
y -(Ljava/lang/Object;)Ljava/lang/StringBuilder; } ?
y ? ] ? toString ()Ljava/lang/String; ? ?
y ? (Ljava/lang/String;)V 5 ?
w ? *com/groupbyinc/flux/action/DocWriteRequest ? index ? ? ? ?
java/util/Set ? (Ljava/lang/Object;)Z \ ? ? ? payload Ljava/lang/Object; C(Ljava/lang/Iterable;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; java/lang/Iterable ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? \ e
? BLjava/lang/Iterable; Ljava/lang/Iterable; ^(Lcom/groupbyinc/flux/action/index/IndexRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; internalAdd ? i
? /Lcom/groupbyinc/flux/action/index/IndexRequest; 'request' must not be null ? java/util/Objects ? requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; ? ?
? ? java/util/List ? ? ?
addPayload (Ljava/lang/Object;)V ? ?
? source 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
h ? /com/groupbyinc/flux/common/bytes/BytesReference ? length ()I ? ?
? ? java/lang/Object ?
h ? `(Lcom/groupbyinc/flux/action/update/UpdateRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; ? s
? 1Lcom/groupbyinc/flux/action/update/UpdateRequest; doc 1()Lcom/groupbyinc/flux/action/index/IndexRequest; ? ?
r ?
upsertRequest ? ?
r ? script %()Lcom/groupbyinc/flux/script/Script; ? ?
r ? !com/groupbyinc/flux/script/Script ? getIdOrCode ? ?
? ? java/lang/String ?
? ?
r ? `(Lcom/groupbyinc/flux/action/delete/DeleteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; 1Lcom/groupbyinc/flux/action/delete/DeleteRequest; 2
m ? size ? ? ? ? (I)V 5 ?
: ? i ()Ljava/util/List; numberOfActions estimatedSizeInBytes ()J e([BIILcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; java/io/IOException ? ?([BIILjava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \ ?
? data [B from xContentType 2Lcom/groupbyinc/flux/common/xcontent/XContentType; +com/groupbyinc/flux/common/bytes/BytesArray ([BII)V 5
?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \
defaultIndex Ljava/lang/String; defaultType>(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext;Ljava/lang/String;Ljava/lang/Object;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; \
1Lcom/groupbyinc/flux/common/bytes/BytesReference; ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Ljava/lang/String;Ljava/lang/String;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/bulk/BulkRequest; allowExplicitIndex Z java/lang/Throwable 0com/groupbyinc/flux/common/xcontent/XContentType xContent 0()Lcom/groupbyinc/flux/common/xcontent/XContent;
,com/groupbyinc/flux/common/xcontent/XContent streamSeparator ()B [Ljava/lang/String;"