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

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

There is a newer version: 129
Show newest version
????4@com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver6com/groupbyinc/flux/common/component/AbstractComponent IndexNameExpressionResolver.java[com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$DateMathExpressionResolverDateMathExpressionResolver[com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$WildcardExpressionResolver	WildcardExpressionResolverScom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$ExpressionResolverExpressionResolverHcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$ContextContext7com/groupbyinc/flux/cluster/metadata/AliasOrIndex$Alias1com/groupbyinc/flux/cluster/metadata/AliasOrIndexAlias8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State2com/groupbyinc/flux/cluster/metadata/IndexMetaDataState%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupexpressionResolversLjava/util/List;gLjava/util/List;dateMathExpressionResolver]Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$DateMathExpressionResolver;1(Lcom/groupbyinc/flux/common/settings/Settings;)V&'
(
($%	+()V&-

.java/util/Arrays0asList%([Ljava/lang/Object;)Ljava/util/List;23
14!"	6thisBLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;settings.Lcom/groupbyinc/flux/common/settings/Settings;concreteIndexNamesj(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Ljava/lang/String;)com/groupbyinc/flux/action/IndicesRequest>indicesOptions5()Lcom/groupbyinc/flux/action/support/IndicesOptions;@A?B`(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;)V&D
Eindices()[Ljava/lang/String;GH?Ir(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;[Ljava/lang/String;)[Ljava/lang/String;<K
Lstate*Lcom/groupbyinc/flux/cluster/ClusterState;request+Lcom/groupbyinc/flux/action/IndicesRequest;contextJLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;concreteIndicesy(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Lcom/groupbyinc/flux/index/Index;?(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index;TV
W?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Ljava/lang/String;options3Lcom/groupbyinc/flux/action/support/IndicesOptions;indexExpressions[Ljava/lang/String;?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index;?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;J[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index;a(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;J)V&`
a	startTimeJjava/lang/Stringe"[Lcom/groupbyinc/flux/index/Index;g]com/groupbyinc/flux/index/IndexjgetName()Ljava/lang/String;lm
kniIindexesnames_alltgetState,()Lcom/groupbyinc/flux/cluster/ClusterState;vw
x(com/groupbyinc/flux/cluster/ClusterStatezmetaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;|}
{~
getOptions?A
?1com/groupbyinc/flux/action/support/IndicesOptions?forbidClosedIndices()Z??
??ignoreUnavailable??
??-com/groupbyinc/flux/cluster/metadata/MetaData?allowNoIndices??
??java/util/List?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext????next()Ljava/lang/Object;????resolvel(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;Ljava/util/List;)Ljava/util/List;??
?isEmpty????0com/groupbyinc/flux/index/IndexNotFoundException?(Ljava/lang/String;)V&?
??index_expression?setResources((Ljava/lang/String;[Ljava/lang/String;)V??
??EMPTY_ARRAY?g	k?java/util/HashSet?size()I????(I)V&?
??
java/util/Set?getAliasAndIndexLookup()Ljava/util/SortedMap;??
??java/util/SortedMap?get&(Ljava/lang/Object;)Ljava/lang/Object;????isAlias???
ignoreAliases??
??aliasesNotSupportedException8(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;??
?
getIndices()Ljava/util/List;???java/util/Collection???allowAliasesToMultipleIndices??
????getIndex#()Lcom/groupbyinc/flux/index/Index;??
?"java/lang/IllegalArgumentException?java/lang/StringBuilder?
?.Alias [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??0] has more than one indices associated with it [?toString'([Ljava/lang/Object;)Ljava/lang/String;??
1?"], can't execute a single index op??m
??
??<()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;v?
?CLOSE:Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;??	?0com/groupbyinc/flux/indices/IndexClosedException$(Lcom/groupbyinc/flux/index/Index;)V&
add(Ljava/lang/Object;)Z?OPEN	?	
java/lang/IllegalStateException
index state [-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
?] not supported

?????toArray(([Ljava/lang/Object;)[Ljava/lang/Object;?expressionResolverULcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$ExpressionResolver;infe2Lcom/groupbyinc/flux/index/IndexNotFoundException;
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
indexNamesindexaliasOrIndex3Lcom/groupbyinc/flux/cluster/metadata/AliasOrIndex;resolvedIndicesLLjava/util/Collection;Ljava/util/Collection;
expressionLjava/lang/String;/Lcom/groupbyinc/flux/cluster/metadata/MetaData;
failClosedZ
failNoIndicesexpressions$Ljava/util/List;2Ljava/util/Set;Ljava/util/Set;The provided expression [3G] matches an alias, specify the corresponding concrete indices instead.5concreteSingleIndexx(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)Lcom/groupbyinc/flux/index/Index;T^
9bunable to return a single index as the index and options provided got resolved to multiple indices;indexExpressionhasIndexOrAlias?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)ZlenientExpandOpen@A
?AresolveExpressionp(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;)Ljava/lang/String;CD
EcontainsKeyG?HresolvedAliasOrIndexresolveDateMathExpression&(Ljava/lang/String;)Ljava/lang/String;dateExpressionfilteringAliasesd(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;"java/lang/invoke/LambdaMetafactoryPmetafactory?(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;RS
QTU2com/groupbyinc/flux/cluster/metadata/AliasMetaDataXfilteringRequiredZ?
Y[\7(Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;)Z^test ()Ljava/util/function/Predicate;`abindexAliases?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/function/Predicate;Z[Ljava/lang/String;)[Ljava/lang/String;de
fjava/util/Collectionsh	emptyListj?
ika(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;Z)V&m
nisAllIndices(Ljava/util/List;)Zpq
r7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;?t
?u3com/groupbyinc/flux/common/collect/ImmutableOpenMapw
x?(I)Ljava/lang/Object;?z?{
getAliases}t
~java/util/function/Predicate?`??equals?
f?java/util/ArrayList?
?.??alias
aliasMetaData4Lcom/groupbyinc/flux/cluster/metadata/AliasMetaData;
requiredAliasTLjava/util/function/Predicate;Ljava/util/function/Predicate;skipIdentityresolvedExpressionsaliasesresolveSearchRouting`(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/Map;%Lcom/groupbyinc/flux/common/Nullable;resolveSearchRoutingAllIndicesR(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Ljava/lang/String;)Ljava/util/Map;??
?
?."com/groupbyinc/flux/common/Strings?splitStringByCommaToSet#(Ljava/lang/String;)Ljava/util/Set;??
??
java/util/Map?!getConcreteIndexAndAliasMetaDatas()Ljava/lang/Iterable;??
?java/lang/Iterable???(com/groupbyinc/flux/common/collect/Tuple?v1??
??v2??
??contains???searchRoutingValues()Ljava/util/Set;??
Y?java/util/HashMap?
?.??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????addAll(Ljava/util/Collection;)Z????	retainAll????remove????(Ljava/util/Collection;)V&?
????r#Ljava/util/Set;
concreteIndexitemrLcom/groupbyinc/flux/common/collect/Tuple;*Lcom/groupbyinc/flux/common/collect/Tuple;9Lcom/groupbyinc/flux/cluster/metadata/AliasOrIndex$Alias;routingroutingsFLjava/util/Map;>;Ljava/util/Map;paramRouting	noroutinggetConcreteAllIndices?H
??isExplicitAllPattern?q
?aliasesOrIndicesisPatternMatchingAllIndicesX(Lcom/groupbyinc/flux/cluster/metadata/MetaData;[Ljava/lang/String;[Ljava/lang/String;)ZcharAt(I)C??
f?&com/groupbyinc/flux/common/regex/Regex?isSimpleMatchPattern(Ljava/lang/String;)Z??
??indexOrAliasindicesOrAliasesmatchesIndexQ(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z<Y
?simpleMatch'(Ljava/lang/String;Ljava/lang/String;)Z??
??	indexName
access$000x0	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableLocalVariableTypeTable?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/util/function/Predicate;Z[Ljava/lang/String;)[Ljava/lang/String;?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;[Ljava/lang/String;)Ljava/util/Map;>;"RuntimeVisibleParameterAnnotations?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Ljava/lang/String;)Ljava/util/Map;>;'(Ljava/util/List;)ZBootstrapMethods
SourceFileInnerClasses!!"?#$%&'?g+*+?)*?
Y*?Y+?*Z?,SY?
Y?/S?5?7?+89+:;>?*C<=?g?Y+,?C?FN*-,?J?M?*89NOPQRS
JKTU?g?Y+,?C?FN*-,?J?X?*89NOPQRS
ST?<Y?i?Y+,?F:*-?M?489NOZ[\]RS
ef?T^?i?Y+,?F:*-?X?489NOZ[\]RS
wx?T_?u?Y+,!?b:*?X?>89NOZ[cd\]	RS
???<K??-*+,?XN-??f:6-??-2?oS?????>pq-89-RS-\]&rgs]????$?*??hi??TV?2?,?,??
?fYuSM+?y?N+??:???????6,???????????6,?5:*?7??:??????
:		+??:??????'?????Y?f??:?,????????Y????:??:		????	???f:
-??
???:?&??ӻ?Y
??:??fY
S??????+???ϙ???
?ӿ??:???z?ݚr???f:
6??:???"???:
???oS??ڻ?Y??Y????
????
?????????????:

????
???:?????-??Y??????T??W?D??????W?)?
Y??Y???????????????t??p???%????Y?f??:		?,??	???k??h???	?? !oc"]
r`pq?v#!j$%P&(?z)*
?	?89?RS?\]?|+!?Z[8t,-]O.-cI/"??T2 P&'cI/0??T1?4?	???!?8?]?c?????????????????????????
??%?(?<?A?G?P?c?o?r??????????????????&?1?A?g?j?m?????????		?!??@?@????$)????Mf?3i?????f?i??(?-???2?%?
i??????)
???L"??Y??Y??4??*??6???????")*?78??L,?J?,?J??,?J2?N*+,?C?fY-S?::????Y???&?Y,?B?FN*?,+-?F:,????I?4&89&$*&NORSJ*KL?F*?,+?Y?F?F?89M*?NO?V*+,?c-?g?*89NO#*/]?de??
L??5??l:?Y+?B?o:*?7??:??????
:		??:????s??+??v,?y?:???Y,??????;?|?f:	?	?y?Y:

?-
?????fY	S?:	??:

???a
???f:,???
???????y?Y:?+-???	???Y??:		??W?????	??		???f???i??A
	?+?*	???
-???O?*L89LNOL#*L??L?-L/]:?" ,RSk? !???"	 L??:?0???0	?!%& 'A(N)Q+Y,[.k/p1y4?5?7?8?9?;?=?>???@?A?C?FIJLMO+R-U0V5W7YH
B?????%	??6fY?	????&f?,Y????????:-?
-?5??l:?Y+?B?F:*?7??:??????
:??:????s?
*+?,???::??Y??:,?	,??:??:		????	???f:
+???
???:?$????:????:

????
????:???f:???Y:????????l???Y??:????:???Y??:??W????W?
??W??
??W?U???I?W?+??Y??:???Y??:??W??
??W???U
???I
?W?+??Y??:???Y??:
??W??

??W??_?
??????>
,J?2??2???*?????????
????2?x$%??)*
:89:NO:?*:/]*?"RSc???f??2o??2R,J????????????*?0c???f???o????;cde>fKgNiVj`mcnfpoqsryu?v?w?x?y?z?{?|}??,?1?:?F?S?X?b?l?v?y???????????????????????????????????????#?&?5?7??B?????%???????J{fi?????f??P?fY?'???3?????3?????????
H,?E,??N??Y??:+??::?66?2:		-??W??????H2#*		=?24??.T]H89H|+H?*	=??4??&	??	???2?=?C?F?&?$	?f??ii???	pq?b*?*???
*?????"?0?@??q?j#*? *???u*?|?????#?"#?0?!@?????H-?+?ྠ?,??:,2??-??,:?66?2:????????46
?*H89H|+H?]HT]"????6?>?@?F??
i?????	C*-?B?fY,S??::?66?2:+????????+,???>,#*C89C?*C)*CNO1T]??,?5?7?=?!?ff{ii????/*?Ӱ?*8	VW]_
:


	@ 




© 2015 - 2025 Weber Informatics LLC | Privacy Policy