
com.groupbyinc.flux.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.class Maven / Gradle / Ivy
???? 3\ [com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$WildcardExpressionResolver java/lang/Object Scom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$ExpressionResolver IndexNameExpressionResolver.java @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver WildcardExpressionResolver ]com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$WildcardExpressionResolver$1 Hcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context
Context 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State java/util/Map$Entry
java/util/Map Entry ExpressionResolver $assertionsDisabled Z ()V
this ]Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$WildcardExpressionResolver; resolve l(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;Ljava/util/List;)Ljava/util/List;
getOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; % &
' getState ,()Lcom/groupbyinc/flux/cluster/ClusterState; ) *
+ (com/groupbyinc/flux/cluster/ClusterState - metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; / 0
. 1 1com/groupbyinc/flux/action/support/IndicesOptions 3 expandWildcardsClosed ()Z 5 6
4 7 expandWildcardsOpen 9 6
4 : -com/groupbyinc/flux/cluster/metadata/MetaData < java/util/List > isEmpty @ 6 ? A size ()I C D ? E _all G get (I)Ljava/lang/Object; I J ? K java/lang/String M equals (Ljava/lang/Object;)Z O P
N Q &com/groupbyinc/flux/common/regex/Regex S isMatchAllPattern (Ljava/lang/String;)Z U V
T W concreteAllIndices ()[Ljava/lang/String; Y Z
= [ java/util/Arrays ] asList %([Ljava/lang/Object;)Ljava/util/List; _ `
^ a concreteAllOpenIndices c Z
= d concreteAllClosedIndices f Z
= g java/util/Collections i emptyList ()Ljava/util/List; k l
j m
java/util/Set o getAliasAndIndexLookup ()Ljava/util/SortedMap; q r
= s java/util/SortedMap u containsKey w P v x add z P p { "com/groupbyinc/flux/common/Strings } (Ljava/lang/CharSequence;)Z @
~ ? 0com/groupbyinc/flux/index/IndexNotFoundException ? (Ljava/lang/String;)V ?
? ? charAt (I)C ? ?
N ? java/util/HashSet ?
? substring (I)Ljava/lang/String; ? ?
N ? ? java/lang/AssertionError ? Shouldn't end up here ? (Ljava/lang/Object;)V ?
? ? EMPTY_ARRAY [Ljava/lang/String; ? ? ~ ? ? (Ljava/util/Collection;)V ?
? ? isSimpleMatchPattern ? V
T ? ignoreUnavailable ? 6
4 ? index_or_alias ? setResources ((Ljava/lang/String;[Ljava/lang/String;)V ? ?
? ? remove ? P p ? subList (II)Ljava/util/List; ? ? ? ? addAll (Ljava/util/Collection;)Z ? ? p ? CLOSE :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; ? ? ? OPEN ? ? ? 5this shouldn't get called if wildcards expand to none ? * ? indexOf (Ljava/lang/String;)I ? ?
N ? length ? D
N ? java/lang/StringBuilder ?
? expression [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? $] should have at least a length of 2 ? toString ()Ljava/lang/String; ? ?
? ? (II)Ljava/lang/String; ? ?
N ? toCharArray ()[C ? ?
N ? ([C)V ?
N ? subMap ;(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap; ? ? v ? r(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$WildcardExpressionResolver;Ljava/lang/String;)V ?
? 5com/groupbyinc/flux/common/google/common/collect/Maps ?
filterEntries e(Ljava/util/SortedMap;Lcom/groupbyinc/flux/common/google/common/base/Predicate;)Ljava/util/SortedMap; ? ?
? ? entrySet ()Ljava/util/Set; ? ? ? iterator ()Ljava/util/Iterator; ? ? p ? java/util/Iterator ? hasNext ? 6 ? ? next ()Ljava/lang/Object; ? ? getValue 1com/groupbyinc/flux/cluster/metadata/AliasOrIndex isPreserveAliases 6
isAlias 6 getKey
getIndices l ? ? <()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; )
getIndex ?
removeAll ? p A allowNoIndices 6
4 p A toArray (([Ljava/lang/Object;)[Ljava/lang/Object;#$ ?% java/util/ArrayList'
( ? concreteIndices infe 2Lcom/groupbyinc/flux/index/IndexNotFoundException; excludeState matches VLjava/util/Map; Ljava/util/Map;
fromPrefix Ljava/lang/String; toPrefixCharArr [C toPrefix pattern meta 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; aliasOrIndex 3Lcom/groupbyinc/flux/cluster/metadata/AliasOrIndex; entry \Ljava/util/Map$Entry; Ljava/util/Map$Entry;
expression expand #Ljava/util/Set; Ljava/util/Set; i I context JLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context; expressions $Ljava/util/List; Ljava/util/List; options 3Lcom/groupbyinc/flux/action/support/IndicesOptions; /Lcom/groupbyinc/flux/cluster/metadata/MetaData; result java/lang/ClassN desiredAssertionStatusP 6
OQ Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver$Context;Ljava/util/List;)Ljava/util/List;
SourceFile InnerClasses 0 S / *? ? T ! " U
# $ S ? 5+? (N+? ,? 2:-? 8? -? ;? ,?,? B ? ,,? F ? ]H,? L ? R? ,? L ? N? X? >-? ;? -? 8? ? \? b?-? ;? ? e? b?-? 8? ? h? b?? n?:6,? F ?V,? L ? N:? t? y ? ?/? | W?"? ??
? ?Y? ??6? ?+? ? ? ?Y? ?:6? ?:? {? ?-? p? `-? ;? -? 8?
? \: ? :-? ;?
? e: ? )-? 8?
? h: ? ? ??
? ?Y?? ??? ?: ? ?Y ? b? ?:6? ?:? ?? [-? ?? 0? t? y ? !? ?Y? ?: ?? NYS? ? ??-? ? | W?? ? W?? ? ?Y? ?:,? ? ? ? W-? ;? -? 8? : ? B-? ;? -? 8? ? ?: ? ,-? 8? -? ;? ? ?: ? ? ??
? ?Y· ??: ? X?
? t:
? ?Ķ ?? ?d? t? ?? -? ?? $? ?Y? ?Y? ?ж ?? ?ֶ Զ ڷ ??? ?d? ?:? ?:?d\4`?U? NY? ?:
? t
? ? :
? :? t? Y*? ? ?:
? ?Y? ?:
? ? ? ? :? ? ? ?? ? :
? ?:+?
? ?
?
? ? | W? F? ? :? ? ? .? ? : ?
? ? ?? | W??Χ?x? ? ? W?
? W
? ? (-?!? !? ?Y? ?:?? NYS? ??????? ,??" ? .-?!? '? ?Y? N? ?:?,? N?& ? ?? ???(Y?)? T 8 + * ? <