
com.groupbyinc.flux.indices.cache.request.IndicesRequestCache.class Maven / Gradle / Ivy
???? 3K =com/groupbyinc/flux/indices/cache/request/IndicesRequestCache Lcom/groupbyinc/flux/common/component/AbstractComponent;Lcom/groupbyinc/flux/common/google/common/cache/RemovalListener; 6com/groupbyinc/flux/common/component/AbstractComponent >com/groupbyinc/flux/common/google/common/cache/RemovalListener IndicesRequestCache.java ?com/groupbyinc/flux/indices/cache/request/IndicesRequestCache$1 Dcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Reaper Reaper Hcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$CleanupKey
CleanupKey Acom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Key Key Ccom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Value Value Dcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Loader Loader Ocom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$QueryCacheWeigher QueryCacheWeigher /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names Ocom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ReaderClosedListener " :com/groupbyinc/flux/common/apache/lucene/index/IndexReader $ ReaderClosedListener INDEX_CACHE_REQUEST_ENABLED Ljava/lang/String; index.requests.cache.enable ) &DEPRECATED_INDEX_CACHE_REQUEST_ENABLED index.cache.query.enable , Ljava/lang/Deprecated; $INDICES_CACHE_REQUEST_CLEAN_INTERVAL %indices.requests.cache.clean_interval 0 INDICES_CACHE_QUERY_SIZE indices.requests.cache.size 3 #DEPRECATED_INDICES_CACHE_QUERY_SIZE indices.cache.query.size 6 INDICES_CACHE_QUERY_EXPIRE indices.requests.cache.expire 9 %INDICES_CACHE_QUERY_CONCURRENCY_LEVEL (indices.requests.cache.concurrency_level < CACHEABLE_SEARCH_TYPES Ljava/util/Set; ?Ljava/util/Set;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; clusterService ,Lcom/groupbyinc/flux/cluster/ClusterService;
cleanInterval +Lcom/groupbyinc/flux/common/unit/TimeValue; reaper FLcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Reaper; registeredClosedListeners $Ljava/util/concurrent/ConcurrentMap; ?Ljava/util/concurrent/ConcurrentMap; keysToClean [Ljava/util/Set; size expire concurrencyLevel I cache 6Lcom/groupbyinc/flux/common/google/common/cache/Cache; ?Lcom/groupbyinc/flux/common/google/common/cache/Cache; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V W Z
[ @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections ] newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; _ `
^ a I J c newConcurrentSet ()Ljava/util/Set; e f
^ g L ? i C D k A B m < )com/groupbyinc/flux/common/unit/TimeValue q timeValueSeconds .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; s t
r u ,com/groupbyinc/flux/common/settings/Settings w getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; y z
x { E F } get &(Ljava/lang/String;)Ljava/lang/String; ?
x ? deprecationLogger 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; ? ? ? dThe [indices.cache.query.size] settings is now deprecated, use [indices.requests.cache.size] instead ? java/lang/Object ? 4com/groupbyinc/flux/common/logging/DeprecationLogger ?
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V ? ?
? ? *com/groupbyinc/flux/cluster/ClusterService ? java/lang/String ? 1% ? N ( ? O F ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; ? ?
x ? intValue ()I ? ?
? ? P Q ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ? ()V W ?
? ? 'concurrency_level must be > 0 but was: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V W ?
? ?
buildCache ? ?
? ?(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$1;)V W ?
? G H ? same ? schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; ? ?
? this ?Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache; settings .Lcom/groupbyinc/flux/common/settings/Settings; isCacheEnabled 2(Lcom/groupbyinc/flux/common/settings/Settings;Z)Z getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; ? ?
x ? dThe [index.cache.query.enable] settings is now deprecated, use [index.requests.cache.enable] instead ? java/lang/Boolean ? (Z)Ljava/lang/Boolean; ? ?
? ? booleanValue ()Z ? ?
? ?
defaultEnable enable Ljava/lang/Boolean; /com/groupbyinc/flux/common/unit/MemorySizeValue ? parseBytesSizeValueOrHeapRatio U(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; ? ?
? ? -com/groupbyinc/flux/common/unit/ByteSizeValue ? bytes ()J ? ?
? ? ;com/groupbyinc/flux/common/google/common/cache/CacheBuilder ?
newBuilder ?()Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ?
maximumWeight @(J)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
? ? D(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$1;)V W ?
? weigher w(Lcom/groupbyinc/flux/common/google/common/cache/Weigher;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder;
? removalListener (Lcom/groupbyinc/flux/common/google/common/cache/RemovalListener;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder;
? @(I)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; P
?
millis ?
r
java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; expireAfterAccess _(JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder;
? build 8()Lcom/groupbyinc/flux/common/google/common/cache/Cache;
? R S sizeInBytes J cacheBuilder ?Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; =Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; close$ ?
% 4com/groupbyinc/flux/common/google/common/cache/Cache'
invalidateAll) ?(* clear /(Lcom/groupbyinc/flux/index/shard/IndexShard;)V???????? ?(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;Lcom/groupbyinc/flux/index/shard/IndexShard;JLcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$1;)V W0
1
java/util/Set3 add (Ljava/lang/Object;)Z5647 logger -Lcom/groupbyinc/flux/common/logging/ESLogger;9: ; {} explicit cache clear= *com/groupbyinc/flux/index/shard/IndexShard? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId;AB
@C +com/groupbyinc/flux/common/logging/ESLoggerE traceG ?FH reapJ ?
K shard ,Lcom/groupbyinc/flux/index/shard/IndexShard; onRemoval G(Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification;)V Bcom/groupbyinc/flux/common/google/common/cache/RemovalNotificationQ getKey ()Ljava/lang/Object;ST
RUMN W requestCache =()Lcom/groupbyinc/flux/index/cache/request/ShardRequestCache;YZ
@[ 9com/groupbyinc/flux/index/cache/request/ShardRequestCache]OP
^_ notification ?Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification; DLcom/groupbyinc/flux/common/google/common/cache/RemovalNotification; canCache n(Lcom/groupbyinc/flux/search/internal/ShardSearchRequest;Lcom/groupbyinc/flux/search/internal/SearchContext;)Z 6com/groupbyinc/flux/search/internal/ShardSearchRequestf templateSource 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;higj "com/groupbyinc/flux/common/Stringsl hasLength 4(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Zno
mp 1com/groupbyinc/flux/search/internal/SearchContextr N ?
st > ? v
searchType 0()Lcom/groupbyinc/flux/action/search/SearchType;xy
sz contains|64} state ,()Lcom/groupbyinc/flux/cluster/ClusterState;? ?? (com/groupbyinc/flux/cluster/ClusterState? getMetaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
?? index? ?g? -com/groupbyinc/flux/cluster/metadata/MetaData? H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
?? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData? ()Ljava/lang/Boolean;Y?g? getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;??
?? FALSE? ? ?? ? ?
? searcher <()Lcom/groupbyinc/flux/search/internal/ContextIndexSearcher;??
s? 8com/groupbyinc/flux/search/internal/ContextIndexSearcher? getIndexReader >()Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader;??
?? >com/groupbyinc/flux/common/apache/lucene/index/DirectoryReader? nowInMillisUsed? ?
s? request 8Lcom/groupbyinc/flux/search/internal/ShardSearchRequest; context 3Lcom/groupbyinc/flux/search/internal/SearchContext; 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; loadIntoContext ?(Lcom/groupbyinc/flux/search/internal/ShardSearchRequest;Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/query/QueryPhase;)V java/lang/Exception? U V ?de
? java/lang/AssertionError?
? ? buildKey ?(Lcom/groupbyinc/flux/search/internal/ShardSearchRequest;Lcom/groupbyinc/flux/search/internal/SearchContext;)Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Key;??
? ?(Lcom/groupbyinc/flux/search/query/QueryPhase;Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Key;)V W?
? E(Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/Object; ?(? isLoaded? ?
? onMiss? ?
^?
indexShard .()Lcom/groupbyinc/flux/index/shard/IndexShard;??
s?
getVersion? ?
?? "java/util/concurrent/ConcurrentMap? containsKey?6?? TRUE? ? ?? putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;???? getDirectoryReader B()Lcom/groupbyinc/flux/common/apache/lucene/index/DirectoryReader;??
?? Dcom/groupbyinc/flux/common/lucene/index/ElasticsearchDirectoryReader? addReaderCloseListener ?(Lcom/groupbyinc/flux/common/apache/lucene/index/DirectoryReader;Lcom/groupbyinc/flux/common/apache/lucene/index/IndexReader$ReaderClosedListener;)V??
?? onHit? ?
^? queryResult 6()Lcom/groupbyinc/flux/search/query/QuerySearchResult;??
s? id? ?
s? reference 1Lcom/groupbyinc/flux/common/bytes/BytesReference;?? ? /com/groupbyinc/flux/common/bytes/BytesReference? streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput;???? 2com/groupbyinc/flux/search/query/QuerySearchResult? readFromWithId 6(JLcom/groupbyinc/flux/common/io/stream/StreamInput;)V
shardTarget 0()Lcom/groupbyinc/flux/search/SearchShardTarget;
s 1(Lcom/groupbyinc/flux/search/SearchShardTarget;)V
previous
cleanupKey JLcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$CleanupKey; result 4Lcom/groupbyinc/flux/search/query/QuerySearchResult;
queryPhase -Lcom/groupbyinc/flux/search/query/QueryPhase; key CLcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Key; loader FLcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Loader; value ELcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache$Value; cacheKeyig a(Lcom/groupbyinc/flux/index/shard/IndexShard;JLcom/groupbyinc/flux/common/bytes/BytesReference;)V W
access$400 l(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;)Lcom/groupbyinc/flux/threadpool/ThreadPool; x0
access$500 n(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;)Lcom/groupbyinc/flux/common/logging/ESLogger;
access$600 l(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;)Lcom/groupbyinc/flux/common/unit/TimeValue;
access$700
access$800 w(Lcom/groupbyinc/flux/indices/cache/request/IndicesRequestCache;)Lcom/groupbyinc/flux/common/google/common/cache/Cache; java/lang/Class* desiredAssertionStatus, ?
+- ,com/groupbyinc/flux/action/search/SearchType/ QUERY_THEN_FETCH .Lcom/groupbyinc/flux/action/search/SearchType;12 03 QUERY_AND_FETCH52 06 java/util/EnumSet8 of 5(Ljava/lang/Enum;Ljava/lang/Enum;)Ljava/util/EnumSet;:;
9<
ConstantValue
Deprecated RuntimeVisibleAnnotations Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification;)V
Exceptions
SourceFile InnerClasses ! ' ( > * + ( > -? @ . / ( > 1 2 ( > 4 5 ( > 7? @ . 8 ( > : ; ( > = > ? A @ A B C D E F G H I J A K L ? A M N ( O F P Q B R S A T U V W X B ? ?*+? \*? b? d*? h? j*,? l*-? n*+1 o? v? |? ~+4? ?:? +7? ?:? *? ??? ?? ?? ?:*? ?*+:? |? ?*+=? ?? ?? ?? ?*? ?? !? ?Y? ?Y? ??? ?*? ?? ?? ?? ??*? ?*? Y*? ǵ ?-*? ~?*? ɶ ?W? C 4 ? ? ? ? ? ? ? C D ? A B 5 ? N ( D Z u h i v w x - z 5 { : | B } G ~ T ? Y ? ] ? c ? n ? ? ? ? ? ? ? ? ? ? ? ? ?E ? T x ? ? ? G@ Y ? ? B ? 3+*? ?N-? +-? ?N-? *? ??? ?? ?-? ? ?N-? ? C * 3 ? ? 3 ? ? 3 ? V + ? ? D " ? ? ? ? ? % ? ) ? . ?E ? % ? ? ? B ? L*? ?4? ?? ?@? ?? ?? Y? ?*?N-*? ??W*? ?? -*? ????W*-??? C L ? ?
? $ (!# F $ (!" D " ?
? ? $ ? - ? 4 ? C ? K ?E ? C ? $ ? B C *? ɶ&*??+ ? C ? ? D ? ? ? ,- B ? ;+? ?*? j? Y*+.?2?8 W*?<>? ?Y+?DS?I *? ɶL? C ; ? ? ;MN D ? ? ? ? 3 ? : ?E OP B u +?V? ?+?V? ?X?\+?`? C ? ? ac F ab D ? ? ? ?E A G de B - ?+?k ?q? ?,?u? ??w,?{?~ ? ?*? l?? ??+?? ??N-? ?+?? ? *-????? ??? ?+?? ? ? ?,??????? ?,??? ?? C * ? ? ? ??? ??? > J?? D N ? ? ? ? ? &