
com.groupbyinc.flux.action.admin.indices.create.CreateIndexRequest.class Maven / Gradle / Ivy
???? 4e Bcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest ?Lcom/groupbyinc/flux/action/support/master/AcknowledgedRequest;Lcom/groupbyinc/flux/action/IndicesRequest;Lcom/groupbyinc/flux/common/xcontent/ToXContentObject; =com/groupbyinc/flux/action/support/master/AcknowledgedRequest )com/groupbyinc/flux/action/IndicesRequest 4com/groupbyinc/flux/common/xcontent/ToXContentObject CreateIndexRequest.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 .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser ! Token MAPPINGS 'Lcom/groupbyinc/flux/common/ParseField; SETTINGS ALIASES cause Ljava/lang/String; index 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; updateAllTypes Z waitForActiveShards 5Lcom/groupbyinc/flux/action/support/ActiveShardCount; ()V 9 :
; = ( ) ? EMPTY_SETTINGS A , B + , D java/util/HashMap F
G ; - . I java/util/HashSet K
L ; 0 1 N 3 . P 5 6 R 3com/groupbyinc/flux/action/support/ActiveShardCount T DEFAULT V 8 U W 7 8 Y this DLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; (Ljava/lang/String;)V C(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V 9 ^
_ * ) a validate ?()Lcom/groupbyinc/flux/action/ActionRequestValidationException; index is missing e *com/groupbyinc/flux/action/ValidateActions g addValidationError ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionRequestValidationException;)Lcom/groupbyinc/flux/action/ActionRequestValidationException; i j
h k ;com/groupbyinc/flux/action/ActionRequestValidationException m validationException =Lcom/groupbyinc/flux/action/ActionRequestValidationException; indices ()[Ljava/lang/String; java/lang/String s indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; 1com/groupbyinc/flux/action/support/IndicesOptions w %strictSingleIndexNoExpandForbidClosed y v
x z ()Ljava/lang/String; X(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; 0()Lcom/groupbyinc/flux/common/settings/Settings; |(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; build ? ~
? 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; t(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; 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; {(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; "com/groupbyinc/flux/common/Strings ? toString I(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Ljava/lang/String; ? ?
? ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? contentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType; ? ?
? ? + ?
? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; U(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; 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; ? ?
? ? map F(Ljava/util/Map;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? 4com/groupbyinc/flux/ElasticsearchGenerationException ? java/lang/StringBuilder ?
? ; Failed to generate [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? ? |
? ? *(Ljava/lang/String;Ljava/lang/Throwable;)V 9 ?
? ? e Ljava/io/IOException; mapping ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; +com/groupbyinc/flux/common/bytes/BytesArray ? 9 ]
? ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ? ?
? type containsKey (Ljava/lang/Object;)Z ? ? ? java/lang/IllegalStateException ? mappings for type " ? " were already defined ?
? ? 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 to json ? *(Ljava/lang/String;Ljava/io/IOException;)V 9 ?
? ? 1Lcom/groupbyinc/flux/common/bytes/BytesReference; ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; /com/groupbyinc/flux/common/bytes/BytesReference ? bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? g(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; size ()I ? -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; ?
? ?
k(Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; 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; jsonBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
? w(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; 0
java/lang/Throwable 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry" EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;$% #& =com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler( INSTANCE ?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler;*+ ), createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;./
?0 nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;23 "4
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;67 8 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/create/CreateIndexRequest;@A
B $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)VDE
F /com/groupbyinc/flux/ElasticsearchParseExceptionH Failed to parse aliasesJ java/lang/ObjectL =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V 9N
IO parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser;
java/util/SetS addU ?TV 6Lcom/groupbyinc/flux/action/admin/indices/alias/Alias; ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ?Y
Z z([BLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; |([BIILcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ?]
^ [B ([BII)V 9a
?b offset I length convertToMap ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;ZLcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/common/collect/Tuple;gh
?i (com/groupbyinc/flux/common/collect/Tuplek v2 ()Ljava/lang/Object;mn
lo ?(Ljava/util/Map;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ?q
r entrySet ()Ljava/util/Set;tu v iterator ()Ljava/util/Iterator;xyTz java/util/Iterator| hasNext ()Z~}? next?n}? getKey?n ? &