
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;Lcom/groupbyinc/flux/common/xcontent/ToXContent; ;com/groupbyinc/flux/action/support/master/MasterNodeRequest )com/groupbyinc/flux/action/IndicesRequest .com/groupbyinc/flux/common/xcontent/ToXContent 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 5com/groupbyinc/flux/common/xcontent/ToXContent$Params Params 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 D E
F H 0 / J EMPTY_SETTINGS L 9 M 8 9 O java/util/HashMap Q
R F : ; T java/util/HashSet V
W F = > Y @ ; [ this OLcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; (Ljava/lang/String;)V . / ` validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; name is missing d *com/groupbyinc/flux/action/ValidateActions f addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; h i
g j ;com/groupbyinc/flux/action/ActionRequestValidationException l 1 2 n java/util/List p size ()I r s q t index patterns are missing v 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; 4 5 ? d(Ljava/lang/Integer;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; B C ? ()Ljava/lang/Integer; R(Z)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; 6 7 ? ()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; ? ?
? ? "com/groupbyinc/flux/common/Strings ? toString I(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Ljava/lang/String; ? ?
? ? 8 ?
? 4com/groupbyinc/flux/ElasticsearchGenerationException ? java/lang/StringBuilder ?
? F Failed to generate [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? ? {
? ? *(Ljava/lang/String;Ljava/lang/Throwable;)V D ?
? ? 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 ? D _
? ? ?(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; /com/groupbyinc/flux/common/bytes/BytesReference ? bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)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 D ?
? ? 1Lcom/groupbyinc/flux/common/bytes/BytesReference; r(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; t 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;./-0 java/util/Iterator2 hasNext4 ?35 next ()Ljava/lang/Object;7839 getKey;8 < java/lang/String> template@ equalsB
?C getValueE8 F , - H >Deprecated field [template] used, replaced by [index_patterns]J java/lang/ObjectL 4com/groupbyinc/flux/common/logging/DeprecationLoggerN
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)VPQ
OR java/util/CollectionsT
singletonList $(Ljava/lang/Object;)Ljava/util/List;VW
UX | }
Z index_patterns\ stream ()Ljava/util/stream/Stream;^_ q` "java/lang/invoke/LambdaMetafactoryb 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;de
cfg ?
M ?j &(Ljava/lang/Object;)Ljava/lang/String;l apply ()Ljava/util/function/Function;no p java/util/stream/Streamr 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ?tsu java/util/stream/Collectorsw toList ()Ljava/util/stream/Collector;yz
x{ collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;}~s CMalformed [template] value, should be a string or a list of strings?
" ? 4 4 s
? =com/groupbyinc/flux/common/xcontent/support/XContentMapValues? nodeIntegerValue (Ljava/lang/Object;I)I??
?? 4
? B java/lang/Integer? /Malformed [version] value, should be an integer? B ?
? 8