com.groupbyinc.flux.action.update.UpdateRequest.class Maven / Gradle / Ivy
???? 4? /com/groupbyinc/flux/action/update/UpdateRequest ~Lcom/groupbyinc/flux/action/support/single/instance/InstanceShardOperationRequest;Lcom/groupbyinc/flux/action/DocWriteRequest;Lcom/groupbyinc/flux/action/support/WriteRequest;Lcom/groupbyinc/flux/common/xcontent/ToXContentObject; Pcom/groupbyinc/flux/action/support/single/instance/InstanceShardOperationRequest *com/groupbyinc/flux/action/DocWriteRequest /com/groupbyinc/flux/action/support/WriteRequest 4com/groupbyinc/flux/common/xcontent/ToXContentObject
UpdateRequest.java =com/groupbyinc/flux/action/support/WriteRequest$RefreshPolicy
RefreshPolicy 1com/groupbyinc/flux/action/DocWriteRequest$OpType OpType 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 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 type Ljava/lang/String; id routing %Lcom/groupbyinc/flux/common/Nullable; parent script #Lcom/groupbyinc/flux/script/Script; fields [Ljava/lang/String; fetchSourceContext >Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext; version J versionType 'Lcom/groupbyinc/flux/index/VersionType; retryOnConflict I
refreshPolicy ?Lcom/groupbyinc/flux/action/support/WriteRequest$RefreshPolicy; waitForActiveShards 5Lcom/groupbyinc/flux/action/support/ActiveShardCount;
upsertRequest /Lcom/groupbyinc/flux/action/index/IndexRequest; scriptedUpsert Z docAsUpsert
detectNoop doc ()V D E
F???????? 3 4 J %com/groupbyinc/flux/index/VersionType L INTERNAL N 6 M O 5 6 Q 7 8 S NONE U : V 9 : X 3com/groupbyinc/flux/action/support/ActiveShardCount Z DEFAULT \ < [ ] ; < _ ? @ a A @ c B @ e this 1Lcom/groupbyinc/flux/action/update/UpdateRequest; 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V (Ljava/lang/String;)V D j
k ' ( m ) ( o index validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; r s
t = > v /can't provide both upsert request and a version x *com/groupbyinc/flux/action/ValidateActions z addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; | }
{ ~ ;com/groupbyinc/flux/action/ActionRequestValidationException ? -com/groupbyinc/flux/action/index/IndexRequest ? ()J 3 ?
? ? 'can't provide version in upsert request ? type is missing ?
id is missing ? java/lang/StringBuilder ?
? F version type [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? $] is not supported by the update API ? toString ()Ljava/lang/String; ? ?
? ? ;can't provide both retry_on_conflict and a specific version ? validateVersionForWrites (J)Z ? ?
M ? illegal version value [ ? (J)Ljava/lang/StringBuilder; ? ?
? ? ] for version type [ ? name ? ?
M ? ] ? - . ? C > ? script or doc is missing ? !can't provide both script and doc ? 1doc must be specified if doc_as_upsert is enabled ? validationException =Lcom/groupbyinc/flux/action/ActionRequestValidationException; E(Ljava/lang/String;)Lcom/groupbyinc/flux/action/update/UpdateRequest; java/lang/String ? length ()I ? ?
? ? * ( ? , ( ?
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; ? ? ? %()Lcom/groupbyinc/flux/script/Script; V(Lcom/groupbyinc/flux/script/Script;)Lcom/groupbyinc/flux/action/update/UpdateRequest; scriptString Ljava/lang/Deprecated; !com/groupbyinc/flux/script/Script ? getIdOrCode ? ?
? ?
scriptType )()Lcom/groupbyinc/flux/script/ScriptType; getType ? ?
? ? %com/groupbyinc/flux/script/ScriptType ? scriptParams ()Ljava/util/Map; getParams ? ?
? ?
java/util/Map ? l(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptType;)Lcom/groupbyinc/flux/action/update/UpdateRequest; updateOrCreateScript ](Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/util/Map;)V ? ?
? 'Lcom/groupbyinc/flux/script/ScriptType; INLINE ? ? ? ?
scriptLang getLang ? ?
? ? addScriptParam W(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/action/update/UpdateRequest; - ?
? java/util/HashMap ?
? F put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? ? ? 9Ljava/util/HashMap; Ljava/util/HashMap; 5Ljava/util/Map; Ljava/util/Map; value Ljava/lang/Object; B(Ljava/util/Map;)Lcom/groupbyinc/flux/action/update/UpdateRequest; ](Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V D
? - ?
newScriptContent
newScriptType
newScriptLang newScriptParams
scriptContent lang params {(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptType;Ljava/util/Map;)Lcom/groupbyinc/flux/action/update/UpdateRequest; painless ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptType;Ljava/util/Map;)Lcom/groupbyinc/flux/action/update/UpdateRequest; F([Ljava/lang/String;)Lcom/groupbyinc/flux/action/update/UpdateRequest; / 0 fetchSource W(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/action/update/UpdateRequest; 1 2