All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.cluster.metadata.MetaDataCreateIndexService.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3t?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService6com/groupbyinc/flux/common/component/AbstractComponentMetaDataCreateIndexService.javaZcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$DefaultIndexTemplateFilterDefaultIndexTemplateFilterAcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$2	Acom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$14com/groupbyinc/flux/common/settings/Settings$Builder
,com/groupbyinc/flux/common/settings/SettingsBuilderAcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter$Compound8com/groupbyinc/flux/cluster/metadata/IndexTemplateFilterCompoundMAX_INDEX_NAME_BYTESI?DEFAULT_INDEX_TEMPLATE_FILTER\Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$DefaultIndexTemplateFilter;clusterService,Lcom/groupbyinc/flux/cluster/ClusterService;indicesService,Lcom/groupbyinc/flux/indices/IndicesService;allocationServiceBLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;versionLcom/groupbyinc/flux/Version;aliasValidator5Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;indexTemplateFilter:Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;env%Lcom/groupbyinc/flux/env/Environment;Q(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Ljava/util/Set;Lcom/groupbyinc/flux/env/Environment;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V*-
.	0	2 !	4"#	6$%	8()	:
java/util/Set<isEmpty()Z>?=@	B&'	D*com/groupbyinc/flux/cluster/ClusterServiceF*com/groupbyinc/flux/indices/IndicesServiceH@com/groupbyinc/flux/cluster/routing/allocation/AllocationServiceJcom/groupbyinc/flux/VersionL3com/groupbyinc/flux/cluster/metadata/AliasValidatorN#com/groupbyinc/flux/env/EnvironmentPsize()IRS=Titerator()Ljava/util/Iterator;VW=X;[Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;Zjava/util/Iterator\hasNext^?]_next()Ljava/lang/Object;ab]c>([Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;)V*e
ftemplateFiltersithisALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;settings.Lcom/groupbyinc/flux/common/settings/Settings;indexTemplateFiltersKLjava/util/Set;Ljava/util/Set;validateIndexName?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V$java/io/UnsupportedEncodingExceptions(com/groupbyinc/flux/cluster/ClusterStateuroutingTable4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable;wx
vy0com/groupbyinc/flux/cluster/routing/RoutingTable{hasIndex(Ljava/lang/String;)Z}~
|7com/groupbyinc/flux/indices/IndexAlreadyExistsException?com/groupbyinc/flux/index/Index?(Ljava/lang/String;)V*?
??$(Lcom/groupbyinc/flux/index/Index;)V*?
??metaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
v?-com/groupbyinc/flux/cluster/metadata/MetaData?
?"com/groupbyinc/flux/common/Strings?
validFileName?~
??5com/groupbyinc/flux/indices/InvalidIndexNameException?java/lang/StringBuilder?()V*?
??*must not contain the following characters ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??INVALID_FILENAME_CHARS?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;??	??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??H(Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;Ljava/lang/String;)V*?
??#?java/lang/String?contains(Ljava/lang/CharSequence;)Z??
??must not contain '#'?charAt(I)C??
??must not start with '_'?java/util/Locale?ROOTLjava/util/Locale;??	??toLowerCase&(Ljava/util/Locale;)Ljava/lang/String;??
??equals(Ljava/lang/Object;)Z??
??must be lowercase?UTF-8?getBytes(Ljava/lang/String;)[B??
??*com/groupbyinc/flux/ElasticsearchException?(Unable to determine length of index name?java/lang/Object?=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V*?
??index name is too long, (?(I)Ljava/lang/StringBuilder;??
?? > ?)?hasAlias?~
??already exists as alias?.?..?must not be '.' or '..'?e&Ljava/io/UnsupportedEncodingException;indexLjava/lang/String;state*Lcom/groupbyinc/flux/cluster/ClusterState;	byteCountcreateIndex?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)VsettingsBuilder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
Tcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest0()Lcom/groupbyinc/flux/common/settings/Settings;l
putf(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;
	index.normalizePrefixJ(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;

build
?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;l
create-index [??

], cause [cause?
] #com/groupbyinc/flux/common/Priority"URGENT%Lcom/groupbyinc/flux/common/Priority;$%	#&(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;)V*(
)submitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateUpdateTask;)V+,G-requestVLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;listeneriLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;updatedSettingsBuilder6Lcom/groupbyinc/flux/common/settings/Settings$Builder;parseMapping#(Ljava/lang/String;)Ljava/util/Map;java/lang/Exception8java/lang/Throwable:3com/groupbyinc/flux/common/xcontent/XContentFactory<xContentH(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/xcontent/XContent;>?
=@,com/groupbyinc/flux/common/xcontent/XContentBcreateParserH(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;DECF2com/groupbyinc/flux/common/xcontent/XContentParserHmap()Ljava/util/Map;JKILcloseN?IO
java/util/MapQ
addSuppressed(Ljava/lang/Throwable;)VST
;Uparser4Lcom/groupbyinc/flux/common/xcontent/XContentParser;
mappingSourceaddMappings&(Ljava/util/Map;Ljava/nio/file/Path;)Vjava/io/IOException\java/nio/file/Files^newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;`a
_bjava/nio/file/DirectoryStreamdeXjava/nio/file/PathggetFileName()Ljava/nio/file/Path;ijhkh?-com/groupbyinc/flux/common/io/FileSystemUtilsnisHidden(Ljava/nio/file/Path;)Zpq
orlastIndexOf(I)Itu
?v	substring(II)Ljava/lang/String;xy
?z6com/groupbyinc/flux/common/google/common/base/Charsets|UTF_8Ljava/nio/charset/Charset;~	}?newBufferedReaderH(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;??
_?%com/groupbyinc/flux/common/io/Streams?copyToString$(Ljava/io/Reader;)Ljava/lang/String;??
??containsKey??R?get&(Ljava/lang/Object;)Ljava/lang/Object;??R?67
?2com/groupbyinc/flux/common/xcontent/XContentHelper?
mergeDefaults!(Ljava/util/Map;Ljava/util/Map;)V??
??java/io/BufferedReader?8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?R?
?Ologger-Lcom/groupbyinc/flux/common/logging/ESLogger;??	? failed to read / parse mapping [?] from location [?], ignoring...?+com/groupbyinc/flux/common/logging/ESLogger?warn????eOreaderLjava/io/BufferedReader;Ljava/lang/Exception;fileNamelastDotIndexmappingTypemappingFileLjava/nio/file/Path;stream5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;mappingsXLjava/util/Map;>;Ljava/util/Map;mappingsDir
findTemplates?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;)Ljava/util/List;java/util/ArrayList?
??	templates7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;??
??3com/groupbyinc/flux/common/collect/ImmutableOpenMap?values@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;??
??;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;NLjava/util/List;Ljava/util/List;validate?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Vqr
?validateIndexSettingsC(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V??
?2com/groupbyinc/flux/indices/IndexCreationException? getIndexSettingsValidationErrors@(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;??
??@.com/groupbyinc/flux/common/ValidationException
?addValidationErrors(Ljava/lang/Iterable;)V
9(Lcom/groupbyinc/flux/index/Index;Ljava/lang/Throwable;)V*	
?
validationException0Lcom/groupbyinc/flux/common/ValidationException;	indexNamevalidationErrors$Ljava/util/List;index.data_path8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?
sharedDataFilej
Q>path.shared_data must be set in order to use custom data paths'com/groupbyinc/flux/common/io/PathUtils=([Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;?

custom path [ )] is not a sub-path of path.shared_data ["index.number_of_shards$getAsInt:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;&'
(index.number_of_replicas*java/lang/Integer,intValue.S
-/(index must have 1 or more primary shards1(index must have 0 or more replica shards3resolvedPath
customPathnumber_of_primariesLjava/lang/Integer;number_of_replicas
access$100?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)V??
<x0x1x2
access$200x(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;
access$300}(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;
access$400
(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;)Ljava/util/List;??
Gx3
access$500d(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Ljava/lang/String;)Ljava/util/Map;
access$600q(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/common/settings/Settings;lm	N
access$700
access$800
access$900access$1000access$1100access$1200`(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/Version;access$1300o(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/ClusterService;access$1400o(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/indices/IndicesService;access$1500p(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/common/logging/ESLogger;access$1600?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;F(Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService$1;)V*`
a
ConstantValueCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable	Signature?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Ljava/util/Set;Lcom/groupbyinc/flux/env/Environment;)VRuntimeVisibleAnnotations?(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
ExceptionsI(Ljava/lang/String;)Ljava/util/Map;o(Ljava/util/Map;>;Ljava/nio/file/Path;)V
(Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateFilter;)Ljava/util/List;T(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/List;
SourceFileInnerClasses!	c !"#$%&'()*+d?
?*+?/*,?1*-?3*?5*?7*?9*?;?A?
*?C?E?T?U`?:		?CS6
?Y:?`??d?:	
?
S???*?Y	?g?E?ezr
&'IChZ	S9i
?jk?lm??? !?"#?$%?np?()f?nogFst
uvwx!y'{1|;~IP?S?r?|????h4?;	GIKMO=Q? []?"?ijk,qrd8[,?z+?????Y??Y+?????,??+?????Y??Y+?????+???)??Y??Y+??+??Y??????????????+??????Y??Y+??+????+??_???Y??Y+??+????+?Ƕ?+?Ϛ??Y??Y+??+ѷ??>+Ӷ׾>?:??Y??ݷ???7??Y??Y+??+??Y??????????????????,??+????Y??Y+??+???+?Ϛ+?ϙ??Y??Y+??+????????te4???[jk[??[?????gb???&?6?=?c?l???????????????????????"?5?G?Z?h!, ??vt:??d?	^?N-+??
?W+-??W*?1??Y????+?????+???!?????Y*?'+,+?*?.?e*^jk^/0^13Z45f^12g????]?il67d9i+?A+?GMN,?M:,?!-?,?P?:-?V?	,?P?:N?:,?!-?,?P?:-?V?	,?P?#&;
:;
BLRU;:DBe ^WXijkiY?g?
??:?B?hT?&?I;R;
??I;;G;??I;;;
m9inZ[d?,?cN:-?f:?`?3?d?h:?l?m:?s????.?w6??l?m?{??l?m:	????:
:
??:+	???+	???R*?????+	*????W
?U?
???H:?V?<
???4::?:

?!?
???:?V?
??
??::
*????Y?????	????????????
?ݹ????-?X?-???J:?V?>-???5::?:-?#?-???:?V?	-???????;~??;~?????;???q
9SY\;Jq;Jz???;q|zep?1Y?{???
5??
4??H??q???	&!??????jk??????f??????g^??&?4?<???H?q?~?????????????
???G?J?q?z???h?e;]?.h??#K??7
Rhe;]h???;??Q;G;H;?Rhe;]h???;;;?
Rhe;]h??B9?6Rhe;]?Q;H;H;?Rhe;;;?Rhm]io??dc??Y??:,???ȶι?:?`?2?d??:????:-+???
??W????
Y*????eH:??0 ??cjkc/0c??c&'	Z??f0 ??	Z??g"?	?0?:?F?P?S?`?h??]5?m]ip??d\*+?,??*+?+????e jk/0??g?	????d?1*,?N-??$?Y?:-???Y??Y+?????e4
1jk1?1lm+?f+g?????0?h?0?m???d??+?M??Y??N,?*?;??-??W?Q,?M?hY*?;?S,?:?4-??Y??!??,??#??*?;???!??????W+%?):++?):??0?
-2??W??0?
-4??W-?eHD65??jk?lm	?6????:78?098f?g>?	???,?0?D?I?z?????????????h?,???M?*--iq:;dE*+,?=?e >k?0@?gaABd/*?9?e>kgaCDd/*?E?e>kgaEFdP*+,-?H?e*>k?0@?I'gam]JKd:*+???e>k??gam9LMd/*?O?e>kgaPMd/*?O?e>kgaQMd/*?O?e>kgaRMd/*?O?e>kgaSMd/*?O?e>kgaTMd/*?O?e>kgaUVd/*?7?e>kgaWXd/*?1?e>kgaYZd/*?3?e>kga[\d/*???e>kga]^d/*?5?e>kga_?d$?Y?b?C?gdrs*

		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy