
com.groupbyinc.flux.indices.IndicesQueryCache.class Maven / Gradle / Ivy
???? 4u -com/groupbyinc/flux/indices/IndicesQueryCache 6com/groupbyinc/flux/common/component/AbstractComponent :com/groupbyinc/flux/common/apache/lucene/search/QueryCache java/io/Closeable IndicesQueryCache.java /com/groupbyinc/flux/indices/IndicesQueryCache$1
Hcom/groupbyinc/flux/indices/IndicesQueryCache$ElasticsearchLRUQueryCache ElasticsearchLRUQueryCache ;com/groupbyinc/flux/indices/IndicesQueryCache$StatsAndCount
StatsAndCount 3com/groupbyinc/flux/indices/IndicesQueryCache$Stats Stats Bcom/groupbyinc/flux/indices/IndicesQueryCache$CachingWeightWrapper CachingWeightWrapper java/util/Map$Entry
java/util/Map Entry 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property %java/lang/invoke/MethodHandles$Lookup " java/lang/invoke/MethodHandles $ Lookup INDICES_CACHE_QUERY_SIZE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ^Lcom/groupbyinc/flux/common/settings/Setting; !INDICES_CACHE_QUERY_COUNT_SETTING BLcom/groupbyinc/flux/common/settings/Setting; *INDICES_QUERIES_CACHE_ALL_SEGMENTS_SETTING BLcom/groupbyinc/flux/common/settings/Setting; cache ?Lcom/groupbyinc/flux/common/apache/lucene/search/LRUQueryCache; shardKeyMap 3Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap;
shardStats Ljava/util/Map; oLjava/util/Map; sharedRamBytesUsed J stats2 `Ljava/util/Map; $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ; <
= 1com/groupbyinc/flux/common/lucene/ShardCoreKeyMap ? ()V ; A
@ B 0 1 D &java/util/concurrent/ConcurrentHashMap F
G B 2 3 I java/util/IdentityHashMap K
L B 7 3 N ' ( P get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; R S
T -com/groupbyinc/flux/common/unit/ByteSizeValue V * ( X java/lang/Integer Z intValue ()I \ ]
[ ^ logger !Lorg/apache/logging/log4j/Logger; ` a b =using [node] query cache with size [{}] max filter count [{}] d valueOf (I)Ljava/lang/Integer; f g
[ h org/apache/logging/log4j/Logger j debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V l m k n , ( p java/lang/Boolean r booleanValue ()Z t u
s v getBytes ()J x y
W z "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; ~
} ? ? (Ljava/lang/Object;)Z ? lambda$new$0 E(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Z ? ?
? ? ? test ()Ljava/util/function/Predicate; ? ? ? R(Lcom/groupbyinc/flux/indices/IndicesQueryCache;IJLjava/util/function/Predicate;)V ; ?
? . / ? ,com/groupbyinc/flux/common/settings/Settings ? 4(Lcom/groupbyinc/flux/indices/IndicesQueryCache;IJ)V ; ?
? 5 6 ? this /Lcom/groupbyinc/flux/indices/IndicesQueryCache; settings .Lcom/groupbyinc/flux/common/settings/Settings; size /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; count I getStats b(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/index/cache/query/QueryCacheStats; java/util/HashMap ?
? B entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? u ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? 'com/groupbyinc/flux/index/shard/ShardId ? getValue ? ? ? toQueryCacheStats 9()Lcom/groupbyinc/flux/index/cache/query/QueryCacheStats; ? ?
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? 5com/groupbyinc/flux/index/cache/query/QueryCacheStats ?
? B &(Ljava/lang/Object;)Ljava/lang/Object; R ? ? add :(Lcom/groupbyinc/flux/index/cache/query/QueryCacheStats;)V ? ?
? ? values ()Ljava/util/Collection; ? ? ? java/util/Collection ? ? ? getCacheSize ? y
? ? ? ] ? java/lang/Math ? round (D)J ? ?
? ? (JJJJJ)V ; ?
? ? entry uLjava/util/Map$Entry; Ljava/util/Map$Entry; s 7Lcom/groupbyinc/flux/index/cache/query/QueryCacheStats; shard )Lcom/groupbyinc/flux/index/shard/ShardId; stats qLjava/util/Map; info totalSize weight D additionalRamBytesUsed doCache ?(Lcom/groupbyinc/flux/common/apache/lucene/search/Weight;Lcom/groupbyinc/flux/common/apache/lucene/search/QueryCachingPolicy;)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight;
access$000 ~(Lcom/groupbyinc/flux/indices/IndicesQueryCache$CachingWeightWrapper;)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; ? ?
? =com/groupbyinc/flux/common/apache/lucene/search/LRUQueryCache ? ? ?
? j(Lcom/groupbyinc/flux/indices/IndicesQueryCache;Lcom/groupbyinc/flux/common/apache/lucene/search/Weight;)V ;
8Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; policy DLcom/groupbyinc/flux/common/apache/lucene/search/QueryCachingPolicy; in
clearIndex (Ljava/lang/String;)V getCoreKeysForIndex #(Ljava/lang/String;)Ljava/util/Set;
@
clearCoreCacheKey (Ljava/lang/Object;)V
?
? ? clear A
? coreKey Ljava/lang/Object; index Ljava/lang/String;
coreCacheKeys #Ljava/util/Set; Ljava/util/Set; close 9 :
@ ? java/lang/AssertionError" (I)V ;$
#% isEmpty' u ( keySet* ? + ;
#- empty 8(Lcom/groupbyinc/flux/indices/IndicesQueryCache$Stats;)Z cacheSize1 6 2 ramBytesUsed4 6 5 5Lcom/groupbyinc/flux/indices/IndicesQueryCache$Stats; onClose ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V/0
:
# B remove= ? > shardId context BLcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;
access$100 d(Lcom/groupbyinc/flux/indices/IndicesQueryCache;)Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap; x0
access$200 @(Lcom/groupbyinc/flux/indices/IndicesQueryCache;)Ljava/util/Map;
access$402 3(Lcom/groupbyinc/flux/indices/IndicesQueryCache;J)J x1
access$414
access$422
access$500 java/lang/ClassO desiredAssertionStatusQ u
PR indices.queries.cache.sizeT 10%V NodeScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;XY Z memorySizeSetting ?(Ljava/lang/String;Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;\]
^ indices.queries.cache.count`
intSetting z(Ljava/lang/String;II[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;bc
d "indices.queries.cache.all_segmentsf boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;hi
j Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable BootstrapMethods
SourceFile InnerClasses ! ' ( l ) * ( l + , ( l - . / 0 1 2 3 l 4 B 5 6 7 3 l 8 9 : ; <