
com.groupbyinc.flux.indices.cache.query.IndicesQueryCache.class Maven / Gradle / Ivy
???? 3M 9com/groupbyinc/flux/indices/cache/query/IndicesQueryCache 6com/groupbyinc/flux/common/component/AbstractComponent :com/groupbyinc/flux/common/apache/lucene/search/QueryCache java/io/Closeable IndicesQueryCache.java Gcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache$StatsAndCount
StatsAndCount ?com/groupbyinc/flux/indices/cache/query/IndicesQueryCache$Stats
Stats Ncom/groupbyinc/flux/indices/cache/query/IndicesQueryCache$CachingWeightWrapper CachingWeightWrapper ;com/groupbyinc/flux/indices/cache/query/IndicesQueryCache$1 java/util/Map$Entry
java/util/Map Entry INDICES_CACHE_QUERY_SIZE Ljava/lang/String; indices.queries.cache.size #DEPRECATED_INDICES_CACHE_QUERY_SIZE indices.cache.filter.size Ljava/lang/Deprecated; INDICES_CACHE_QUERY_COUNT indices.queries.cache.count # cache ?Lcom/groupbyinc/flux/common/apache/lucene/search/LRUQueryCache; shardKeyMap 3Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap;
shardStats Ljava/util/Map; {Ljava/util/Map; sharedRamBytesUsed J stats2 lLjava/util/Map; $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V *Lcom/groupbyinc/flux/common/inject/Inject; 2 3
5 1com/groupbyinc/flux/common/lucene/ShardCoreKeyMap 7 ()V 2 9
8 : ' ( < &java/util/concurrent/ConcurrentHashMap >
? : ) * A java/util/IdentityHashMap C
D : . * F ,com/groupbyinc/flux/common/settings/Settings H get &(Ljava/lang/String;)Ljava/lang/String; J K
I L deprecationLogger 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; N O P dThe [indices.cache.filter.size] settings is now deprecated, use [indices.queries.cache.size] instead R java/lang/Object T 4com/groupbyinc/flux/common/logging/DeprecationLogger V
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V X Y
W Z java/lang/String \ 10% ^ /com/groupbyinc/flux/common/unit/MemorySizeValue ` parseBytesSizeValueOrHeapRatio U(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; b c
a d java/lang/Integer f valueOf (I)Ljava/lang/Integer; h i
g j getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; l m
I n intValue ()I p q
g r logger -Lcom/groupbyinc/flux/common/logging/ESLogger; t u v Pusing [node] query cache with size [{}], actual_size [{}], max filter count [{}] x +com/groupbyinc/flux/common/logging/ESLogger z debug | Y { } -com/groupbyinc/flux/common/unit/ByteSizeValue bytes ()J ? ?
? ? @(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;IJ)V 2 ?
? % & ? , - ? this ;Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache; settings .Lcom/groupbyinc/flux/common/settings/Settings;
sizeString 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 ?
? : entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? 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 ?
? : &(Ljava/lang/Object;)Ljava/lang/Object; J ? ? add :(Lcom/groupbyinc/flux/index/cache/query/QueryCacheStats;)V ? ?
? ? values ()Ljava/util/Collection; ? ? ? java/util/Collection ? ? ? getCacheSize ? ?
? ? ? q ? java/lang/Math ? round (D)J ? ?
? ? (JJJJJ)V 2 ?
? ? entry ?Ljava/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$500 ?(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache$CachingWeightWrapper;)Lcom/groupbyinc/flux/common/apache/lucene/search/Weight; ? ?
? =com/groupbyinc/flux/common/apache/lucene/search/LRUQueryCache ? ? ?
? ? v(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;Lcom/groupbyinc/flux/common/apache/lucene/search/Weight;)V 2 ?
? 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; ? ?
8 ? clearCoreCacheKey (Ljava/lang/Object;)V
?
? ? clear 9
? coreKey Ljava/lang/Object; index
coreCacheKeys #Ljava/util/Set; Ljava/util/Set; close 0 1
8 ? java/lang/AssertionError (I)V 2
isEmpty ? keySet ? 2
empty D(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache$Stats;)Z cacheSize! - " ramBytesUsed$ - % ALcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache$Stats; onClose ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V
*
: remove- ? . shardId
access$000 p(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;)Lcom/groupbyinc/flux/common/lucene/ShardCoreKeyMap; x0
access$100 L(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;)Ljava/util/Map;
access$302 ?(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;J)J x1
access$300 >(Lcom/groupbyinc/flux/indices/cache/query/IndicesQueryCache;)J
access$400 java/lang/Class= desiredAssertionStatus? ?
>@
ConstantValue
Deprecated RuntimeVisibleAnnotations Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
SourceFile InnerClasses ! B B C D ! " B $ % &