com.groupbyinc.flux.cluster.metadata.AliasValidator.class Maven / Gradle / Ivy
???? 4" 3com/groupbyinc/flux/cluster/metadata/AliasValidator 6com/groupbyinc/flux/common/component/AbstractComponent AliasValidator.java %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V *Lcom/groupbyinc/flux/common/inject/Inject;
this 5Lcom/groupbyinc/flux/cluster/metadata/AliasValidator; settings .Lcom/groupbyinc/flux/common/settings/Settings;
validateAlias z(Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V 4com/groupbyinc/flux/action/admin/indices/alias/Alias name ()Ljava/lang/String;
indexRouting
java/util/Objects ! requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; # $
" % "java/lang/invoke/LambdaMetafactory ' 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; ) *
( + , $ -com/groupbyinc/flux/cluster/metadata/MetaData / index H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; 1 2
0 3 4 2 apply N(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Ljava/util/function/Function; 7 8 9 V(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)V ;
< alias 6Lcom/groupbyinc/flux/action/admin/indices/alias/Alias; Ljava/lang/String; metaData /Lcom/groupbyinc/flux/cluster/metadata/MetaData; validateAliasMetaData x(Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V 2com/groupbyinc/flux/cluster/metadata/AliasMetaData E >
F G
F
aliasMetaData 4Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData; validateAliasStandalone 9(Lcom/groupbyinc/flux/action/admin/indices/alias/Alias;)V java/lang/Exception N '(Ljava/lang/String;Ljava/lang/String;)V L P
Q filter S
T "com/groupbyinc/flux/common/Strings V hasLength (Ljava/lang/String;)Z X Y
W Z 3com/groupbyinc/flux/common/xcontent/XContentFactory \ xContent H(Ljava/lang/CharSequence;)Lcom/groupbyinc/flux/common/xcontent/XContent; ^ _
] ` 2com/groupbyinc/flux/common/xcontent/XContentHelper b convertToMap R(Lcom/groupbyinc/flux/common/xcontent/XContent;Ljava/lang/String;Z)Ljava/util/Map; d e
c f "java/lang/IllegalArgumentException h java/lang/StringBuilder j ()V
l
k m "failed to parse filter for alias [ o append -(Ljava/lang/String;)Ljava/lang/StringBuilder; q r
k s ] u toString w
k x *(Ljava/lang/String;Ljava/lang/Throwable;)V
z
i { e Ljava/lang/Exception; %Lcom/groupbyinc/flux/common/Nullable; hasText ? Y
W ? index name is required ? (Ljava/lang/String;)V
?
i ? java/util/function/Function ? 7 $ ? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? 5com/groupbyinc/flux/indices/InvalidAliasNameException ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? /an index exists with the same name as the alias ? H(Lcom/groupbyinc/flux/index/Index;Ljava/lang/String;Ljava/lang/String;)V
?
? ? indexLookup eLjava/util/function/Function; Ljava/util/function/Function; indexNamedSameAsAlias 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; alias name is required ? 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ?
P
? ? ? B(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/RuntimeException; ? !()Ljava/util/function/BiFunction; 7 ? ? ?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService ? validateIndexOrAliasName 4(Ljava/lang/String;Ljava/util/function/BiFunction;)V ? ?
? ? java/lang/String ? indexOf (I)I ? ?
? ? alias [ ? 5] has several index routing values associated with it ? validateAliasFilter ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/index/query/QueryShardContext;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V java/lang/Throwable ? ? java/lang/AssertionError ?
? m =com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler ? INSTANCE ?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler; ? ? ? ? ,com/groupbyinc/flux/common/xcontent/XContent ? createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ? ? ? ? j(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/index/query/QueryShardContext;)V ? ?
? $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V ? ?
? 1com/groupbyinc/flux/index/query/QueryShardContext ? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry ? 2com/groupbyinc/flux/common/xcontent/XContentParser ? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; queryShardContext 3Lcom/groupbyinc/flux/index/query/QueryShardContext; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; ?(Ljava/lang/String;[BLcom/groupbyinc/flux/index/query/QueryShardContext;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V 2([B)Lcom/groupbyinc/flux/common/xcontent/XContent; ^ ?
] ? ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;[B)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ? ? ? ? [B ? java/io/IOException ? 4com/groupbyinc/flux/index/query/AbstractQueryBuilder ? parseInnerQueryBuilder d(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/query/QueryBuilder; ? ?
? ? +com/groupbyinc/flux/index/query/Rewriteable ? rewrite ?(Lcom/groupbyinc/flux/index/query/Rewriteable;Lcom/groupbyinc/flux/index/query/QueryRewriteContext;Z)Lcom/groupbyinc/flux/index/query/Rewriteable; ? ? ? ? ,com/groupbyinc/flux/index/query/QueryBuilder ? toFilter l(Lcom/groupbyinc/flux/index/query/QueryShardContext;)Lcom/groupbyinc/flux/common/apache/lucene/search/Query; ? ? ? ? .Lcom/groupbyinc/flux/index/query/QueryBuilder; queryBuilder java/lang/AutoCloseable close l
addSuppressed (Ljava/lang/Throwable;)V
? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; java/lang/Class desiredAssertionStatus ()Z
Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable LocalVariableTypeTable Signature ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)V "RuntimeVisibleParameterAnnotations
Exceptions BootstrapMethods
SourceFile InnerClasses !
> *+? ?
3 4 e *+? ,+? -Y? &W? : ? =? * > ? 1 @ A B
<