com.groupbyinc.flux.common.lucene.ShardCoreKeyMap.class Maven / Gradle / Ivy
???? 4 1com/groupbyinc/flux/common/lucene/ShardCoreKeyMap java/lang/Object ShardCoreKeyMap.java Ccom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey :com/groupbyinc/flux/common/apache/lucene/index/IndexReader CacheKey Icom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ClosedListener ClosedListener Fcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheHelper CacheHelper %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup coreKeyToShard Ljava/util/Map; Ljava/util/Map; indexToCoreKey yLjava/util/Map;>; $assertionsDisabled Z ()V
&java/util/concurrent/ConcurrentHashMap !
" $ java/util/HashMap &
' ) this 3Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap; add >(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;)V java/io/IOException / *com/groupbyinc/flux/index/shard/ShardUtils 1 extractShardId f(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;)Lcom/groupbyinc/flux/index/shard/ShardId; 3 4
2 5 "java/lang/IllegalArgumentException 7 java/lang/StringBuilder 9
: Could not extract shard id from < append -(Ljava/lang/String;)Ljava/lang/StringBuilder; > ?
: @ -(Ljava/lang/Object;)Ljava/lang/StringBuilder; > B
: C toString ()Ljava/lang/String; E F
: G (Ljava/lang/String;)V I
8 J 'com/groupbyinc/flux/index/shard/ShardId L 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader N getCoreCacheHelper J()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheHelper; P Q
O R Reader T does not support caching V getKey G()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey; X Y Z
java/util/Map \ containsKey (Ljava/lang/Object;)Z ^ _ ] ` getIndexName b F
M c get &(Ljava/lang/Object;)Ljava/lang/Object; e f ] g
java/util/Set i java/util/HashSet k
l put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; n o ] p java/lang/String r - _ j t v java/lang/AssertionError x
y "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; } ~
| ? H(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey;)V ? lambda$add$0 ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey;Ljava/lang/String;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey;)V ? ?
? ? onClose ?(Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ClosedListener; ? ? ? addClosedListener N(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ClosedListener;)V ? ? ? ? ? ? java/lang/RuntimeException ? 6Blow up trying to recover from failure to add listener ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? ? java/lang/Throwable ? previous )Lcom/groupbyinc/flux/index/shard/ShardId; e Ljava/io/IOException; objects VLjava/util/Set; Ljava/util/Set; added listener KLcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ClosedListener;
addedListener reader ;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; shardId cacheHelper HLcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheHelper; coreKey ELcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$CacheKey; index Ljava/lang/String;
getShardId =(Ljava/lang/Object;)Lcom/groupbyinc/flux/index/shard/ShardId; Ljava/lang/Object; getCoreKeysForIndex #(Ljava/lang/String;)Ljava/util/Set; java/util/Collections ? emptySet ()Ljava/util/Set; ? ?
? ? (Ljava/util/Collection;)V ?
l ? unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; ? ?
? ? size ()I
assertSize ()Z ? ?
? ? ? ] ? com/groupbyinc/flux/Assertions ? ENABLED ? ? ? 'only run this if assertions are enabled ? (Ljava/lang/Object;)V ?
y ? values ()Ljava/util/Collection; ? ? ] ? java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? j ? value nLjava/util/Collection;>; Ljava/util/Collection; I remove ? f ] ? ? _ j ? isEmpty ? ? j ? coreKeys removed ownerCoreCacheKey java/lang/Class ? desiredAssertionStatus ? ?
? ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable 7(Ljava/lang/String;)Ljava/util/Set;
Exceptions BootstrapMethods
SourceFile InnerClasses 1 ? ? ? Q *? *? "Y? #? %*? 'Y? (? *? ? + , 5 6 7 8 - . ? Q Y+? 6M,? ? 8Y? :Y? ;=? A+? D? H? K?+? SN-? #? 8Y? :Y? ;U? A+? DW? A? H? K?-? [ :*? %? a ? ?,? d:*Y:?*? %? a ? ?*? *? h ? j:? ? lY? m:*? *? q W? u 6? w? ? ? yY? z?*? ? : 6
- ? ? 6
*? %,? q ? M:? w? ? ? yY? z?
? B ? ? ? 6:? ?Y?? ??:
? ? ? ? :
? ?Y?
? ???ç :??? 0 ?% -69 0%'% oMP PUP ? ?
? ? ? ? ? ; ? ?
? ? ? ? ? ? ? ? w ? ? ? t ?
Y + , Y ? ? T ? ? )0 ? ? U ? ? j ? ? ? ? ? ? ? ? $ ? @ A $ C ) D - E M G U I c M d P j Q o R } S ? T ? U ? V ? X ? Y ? Z ? f ? h ? i ? p ? q s u x v w% s- u6 x9 v; wJ |X } ?
? $ M? ( ? ? D s j? ? = Q 0M ??
O M s j ? 0
? O M s E ?? ! ? ? ? B *? %+? h ? M? ? + , ? ? ? ! ? ? ? ? "*? *+? h ? jM,? ? ??? lY,? ?? ?? ? " + , " ? ? ? ? ? ? ? ? ? ? ? j ? ! ? ? ? V ? w? *? ǚ ? yY? z?*? %? ? ? ? + ,
? ? " ? ? ? ? W? Κ
? yYз ӿ*? *? ? L=+? ? N-? ? ? -? ? ? j:? ? `=???*? %? ? ? ? ? ? * 7
? ? W + , = ? ? ; ? ? 7
? ? = ? ? " ? ? ? ? ? 7 ? A ? D ? ? ? ?? @ ? ? ? 2 s? w? +-? ? yY? z?*Y:?*? %-? ? W*? *,? h ? j:+? ? 6? w? ? ? yY? z?? ? ? *? *,? ? Wç :??? g j j o j ? > 2 2 ? ? <