com.groupbyinc.flux.action.admin.indices.template.put.PutIndexTemplateRequest.class Maven / Gradle / Ivy
???? 4? Mcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest ?Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;Lcom/groupbyinc/flux/action/IndicesRequest; ;com/groupbyinc/flux/action/support/master/MasterNodeRequest )com/groupbyinc/flux/action/IndicesRequest PutIndexTemplateRequest.java 9com/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Custom 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder java/util/Map$Entry
java/util/Map Entry 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 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 DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; name Ljava/lang/String; cause
indexPatterns Ljava/util/List; $Ljava/util/List; order I create Z settings .Lcom/groupbyinc/flux/common/settings/Settings; mappings Ljava/util/Map; 5Ljava/util/Map; aliases Ljava/util/Set; GLjava/util/Set; customs ^Ljava/util/Map; version Ljava/lang/Integer; ()V ? @
A C + * E EMPTY_SETTINGS G 4 H 3 4 J java/util/HashMap L
M A 5 6 O java/util/HashSet Q
R A 8 9 T ; 6 V this OLcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; (Ljava/lang/String;)V ) * [ validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; name is missing _ *com/groupbyinc/flux/action/ValidateActions a addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; c d
b e ;com/groupbyinc/flux/action/ActionRequestValidationException g , - i java/util/List k size ()I m n l o pattern is missing q validationException =Lcom/groupbyinc/flux/action/ActionRequestValidationException; c(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ()Ljava/lang/String; patterns a(Ljava/util/List;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ()Ljava/util/List; R(I)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; / 0 { d(Ljava/lang/Integer;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; = > ~ ()Ljava/lang/Integer; R(Z)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; 1 2 ? ()Z (Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ?(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; build 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? loadFromSource |(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? source xContentType 2Lcom/groupbyinc/flux/common/xcontent/XContentType; `(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; java/io/IOException ? 0com/groupbyinc/flux/common/xcontent/XContentType ? JSON ? ? ? ? 3com/groupbyinc/flux/common/xcontent/XContentFactory ? contentBuilder i(Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? map F(Ljava/util/Map;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? string ? v
? ? 3 ?
? 4com/groupbyinc/flux/ElasticsearchGenerationException ? java/lang/StringBuilder ?
? A Failed to generate [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? v
? ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ?
? ? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e Ljava/io/IOException; 5Ljava/util/Map; mapping ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; +com/groupbyinc/flux/common/bytes/BytesArray ? ? Z
? ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ? ?
? type ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; bytes 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? contentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; ? ?
? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? 2com/groupbyinc/flux/common/xcontent/XContentHelper ?
convertToJson y(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZZLcom/groupbyinc/flux/common/xcontent/XContentType;)Ljava/lang/String; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? java/io/UncheckedIOException ? failed to convert source to json ? *(Ljava/lang/String;Ljava/io/IOException;)V ? ?
? ? 1Lcom/groupbyinc/flux/common/bytes/BytesReference; r(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; o containsKey (Ljava/lang/Object;)Z ? ? ? -com/groupbyinc/flux/common/collect/MapBuilder ?
newMapBuilder 1()Lcom/groupbyinc/flux/common/collect/MapBuilder; ? ?
? U(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder; ?
? ()Ljava/util/Map; ?
? ? ?
v(Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; Fcom/groupbyinc/flux/action/admin/indices/mapping/put/PutMappingRequest buildFromSimplifiedDef \(Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
[Ljava/lang/Object; ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; java/lang/Exception ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ?
"java/lang/IllegalArgumentException )Failed to build json for template request
? Ljava/lang/Exception; templateBuilder entrySet ()Ljava/util/Set; !
java/util/Set# iterator ()Ljava/util/Iterator;%&$' java/util/Iterator) hasNext+ ?*, next ()Ljava/lang/Object;./*0 getKey2/ 3 java/lang/String5 template7 equals9 ?
6: getValue</ = ' ( ? >Deprecated field [template] used, replaced by [index_patterns]A java/lang/ObjectC 4com/groupbyinc/flux/common/logging/DeprecationLoggerE
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)VGH
FI java/util/CollectionsK
singletonList $(Ljava/lang/Object;)Ljava/util/List;MN
LO w x
Q index_patternsS stream ()Ljava/util/stream/Stream;UV lW "java/lang/invoke/LambdaMetafactoryY 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;[\
Z]^ ?
D ?a &(Ljava/lang/Object;)Ljava/lang/String;c apply ()Ljava/util/function/Function;ef g java/util/stream/Streami 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ?kjl java/util/stream/Collectorsn toList ()Ljava/util/stream/Collector;pq
or collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;tujv CMalformed [template] value, should be a string or a list of stringsx
? / / n
| =com/groupbyinc/flux/common/xcontent/support/XContentMapValues~ nodeIntegerValue (Ljava/lang/Object;I)I??
? / z
? = java/lang/Integer? /Malformed [version] value, should be an integer? = }
? 3