
com.groupbyinc.flux.action.admin.indices.template.put.PutIndexTemplateRequest.class Maven / Gradle / Ivy
???? 3 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 name Ljava/lang/String; cause template 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; ()V / 0
1 3 5 EMPTY_SETTINGS 7 & 8 % & : 5com/groupbyinc/flux/common/google/common/collect/Maps <
newHashMap ()Ljava/util/HashMap; > ?
= @ ' ( B 5com/groupbyinc/flux/common/google/common/collect/Sets D
newHashSet ()Ljava/util/HashSet; F G
E H * + J - ( L this OLcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; (Ljava/lang/String;)V Q validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; name is missing U *com/groupbyinc/flux/action/ValidateActions W addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; Y Z
X [ ;com/groupbyinc/flux/action/ActionRequestValidationException ] _ template is missing a validationException =Lcom/groupbyinc/flux/action/ActionRequestValidationException; c(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ()Ljava/lang/String; R(I)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ! " h ()I R(Z)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; # $ l ()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; q r
s 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; settingsBuilder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; v w
x loadFromSource J(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; z {
| source `(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; java/io/IOException ? 0com/groupbyinc/flux/common/xcontent/XContentType ? JSON 2Lcom/groupbyinc/flux/common/xcontent/XContentType; ? ? ? ? 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 ? f
? ? % e
? 4com/groupbyinc/flux/ElasticsearchGenerationException ? java/lang/StringBuilder ?
? 1 Failed to generate [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ? f
? ? *(Ljava/lang/String;Ljava/lang/Throwable;)V / ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e Ljava/io/IOException; 5Ljava/util/Map; mapping u(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? type ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; "java/lang/IllegalArgumentException ? (Failed to build json for mapping request ?
? ? r(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; size ? j ? 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 ? bytes 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ~ ?
? )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 ? n ? ? next ()Ljava/lang/Object; ? ? ? getKey ? java/lang/String equals ?
getValue ? java/lang/Object
? e
! ! j
=com/groupbyinc/flux/common/xcontent/support/XContentMapValues nodeIntegerValue (Ljava/lang/Object;I)I
! g
% :Malformed settings section, should include an inner object / P
?! %
# ' %Malformed mappings section for type [& 8], should include an inner object describing the mapping( ? ?
* * *
- lookupPrototype O(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;/0
1 fromMap L(Ljava/util/Map;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;34
5 /com/groupbyinc/flux/ElasticsearchParseException7 (failed to parse custom metadata for [{}]9 ((Ljava/lang/String;[Ljava/lang/Object;)V /;
8< entry1 ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; proto ;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom; entry templateSource java/lang/ThrowableE xContent H(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/xcontent/XContent;GH
?I ,com/groupbyinc/flux/common/xcontent/XContentK createParser H(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;MNLO
mapOrderedQ ? R ~
T closeV 0 W
addSuppressed (Ljava/lang/Throwable;)VYZ
F[ !failed to parse template source [] parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; S([B)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; U([BII)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ~b
c [B 4([BII)Lcom/groupbyinc/flux/common/xcontent/XContent;Gf
?g :([BII)Lcom/groupbyinc/flux/common/xcontent/XContentParser;MiLje failed to parse template sourcem offset length a(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContent;Gq
?r g(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;MtLu /com/groupbyinc/flux/common/bytes/BytesReferencew 1Lcom/groupbyinc/flux/common/bytes/BytesReference; custom ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Custom;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ? f
| jsonBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;~
?? * ?
? +com/groupbyinc/flux/common/bytes/BytesArray?
?! 2com/groupbyinc/flux/common/xcontent/XContentHelper?
?u nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ?
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? ? 4com/groupbyinc/flux/action/admin/indices/alias/Alias? fromXContent l(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;??
?? alias ?(Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest;??
? Failed to parse aliases? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V /?
8? add? ? ?? 6Lcom/groupbyinc/flux/action/admin/indices/alias/Alias; indices ()[Ljava/lang/String; indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; 1com/groupbyinc/flux/action/support/IndicesOptions? strictExpand??
?? readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V??
? 0com/groupbyinc/flux/common/io/stream/StreamInput?
readString? f
?? readInt? j
?? readBoolean? n
?? readSettingsFromStream b(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/settings/Settings;??
? readVInt? j
?? lookupPrototypeSafe?0
? F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object;??
? read j(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;??
?? i customIndexMetaData in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput;
customSize aliasesSize writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V??
? 1com/groupbyinc/flux/common/io/stream/StreamOutput? writeString? P
?? writeInt (I)V??
?? writeBoolean (Z)V??
?? writeSettingsToStream d(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V??
? writeVInt??
??
? ? ?
?? ;Ljava/util/Map$Entry; dLjava/util/Map$Entry; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; ?(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/template/put/PutIndexTemplateRequest; 7()Ljava/util/Map; `()Ljava/util/Map; I()Ljava/util/Set;
Exceptions
SourceFile InnerClasses ! ! " # $ % &