
com.groupbyinc.flux.indices.fielddata.cache.IndicesFieldDataCache.class Maven / Gradle / Ivy
???? 3B Acom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache ?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 IndicesFieldDataCache.java Wcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$FieldDataCacheCleaner FieldDataCacheCleaner Ecom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$Key Key Qcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$IndexFieldCache IndexFieldCache Rcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$FieldDataWeigher FieldDataWeigher @com/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener 7com/groupbyinc/flux/index/fielddata/IndexFieldDataCache Listener 6com/groupbyinc/flux/index/mapper/MappedFieldType$Names 0com/groupbyinc/flux/index/mapper/MappedFieldType Names /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool ! FIELDDATA_CLEAN_INTERVAL_SETTING Ljava/lang/String; (indices.fielddata.cache.cleanup_interval % !FIELDDATA_CACHE_CONCURRENCY_LEVEL )indices.fielddata.cache.concurrency_level ( INDICES_FIELDDATA_CACHE_SIZE_KEY indices.fielddata.cache.size + indicesFieldDataCacheListener KLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCacheListener; cache 6Lcom/groupbyinc/flux/common/google/common/cache/Cache; ?Lcom/groupbyinc/flux/common/google/common/cache/Cache;
cleanInterval +Lcom/groupbyinc/flux/common/unit/TimeValue;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; closed Z $assertionsDisabled ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCacheListener;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 9 <
= 6 7 ? 4 5 A - . C -1 E ,com/groupbyinc/flux/common/settings/Settings G get 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; I J
H K getAsMemory U(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; M N
H O -com/groupbyinc/flux/common/unit/ByteSizeValue Q bytes ()J S T
R U ;com/groupbyinc/flux/common/google/common/cache/CacheBuilder W
newBuilder ?()Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; Y Z
X [ removalListener (Lcom/groupbyinc/flux/common/google/common/cache/RemovalListener;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ] ^
X _
maximumWeight @(J)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; a b
X c ()V 9 e
f weigher w(Lcom/groupbyinc/flux/common/google/common/cache/Weigher;)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; h i
X j Icom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCacheListener l java/lang/String n java/lang/Integer p valueOf (I)Ljava/lang/Integer; r s
q t getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; v w
H x intValue ()I z {
q | "java/lang/IllegalArgumentException ~ java/lang/StringBuilder ?
? f '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 9 ?
? concurrencyLevel @(I)Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; ? ?
X ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? using size [{}] [{}] ? java/lang/Object ? (J)V 9 ?
R ? +com/groupbyinc/flux/common/logging/ESLogger ? debug ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? build 8()Lcom/groupbyinc/flux/common/google/common/cache/Cache; ? ?
X ? / 0 ? )com/groupbyinc/flux/common/unit/TimeValue ? timeValueMinutes .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
H ? 2 3 ? same ? ?(Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache;Lcom/groupbyinc/flux/common/google/common/cache/Cache;Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/unit/TimeValue;)V 9 ?
? schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; ? ?
" ? this CLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache; settings .Lcom/groupbyinc/flux/common/settings/Settings; size sizeInBytes J cacheBuilder ?Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; =Lcom/groupbyinc/flux/common/google/common/cache/CacheBuilder; I close 4com/groupbyinc/flux/common/google/common/cache/Cache ?
invalidateAll ? e ? ? buildIndexFieldDataCache (Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener;Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/index/mapper/MappedFieldType$Names;Lcom/groupbyinc/flux/index/fielddata/FieldDataType;)Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache;5(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/common/google/common/cache/Cache;Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/index/mapper/MappedFieldType$Names;Lcom/groupbyinc/flux/index/fielddata/FieldDataType;[Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener;)V 9 ?
? listener BLcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener; index !Lcom/groupbyinc/flux/index/Index;
fieldNames 8Lcom/groupbyinc/flux/index/mapper/MappedFieldType$Names;
fieldDataType 3Lcom/groupbyinc/flux/index/fielddata/FieldDataType; getCache onRemoval G(Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification;)V java/lang/Throwable ? Bcom/groupbyinc/flux/common/google/common/cache/RemovalNotification ? getKey ()Ljava/lang/Object; ? ?
? ? 8 7 ? listeners Ljava/util/List; ? ?
? java/lang/AssertionError ?
? f
indexCache SLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$IndexFieldCache; ? ?
? getValue ? ?
? ? 9com/groupbyinc/flux/common/apache/lucene/util/Accountable ? java/util/List ? iterator ()Ljava/util/Iterator; ? java/util/Iterator hasNext ()Z next
? shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
? ? ? ?
wasEvicted
? ramBytesUsed T ? ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/mapper/MappedFieldType$Names;Lcom/groupbyinc/flux/index/fielddata/FieldDataType;ZJ)V ? 5Failed to call listener on field data cache unloading error =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ! ?" e Ljava/lang/Throwable; notification ?Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification; DLcom/groupbyinc/flux/common/google/common/cache/RemovalNotification; key GLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache$Key; value ;Lcom/groupbyinc/flux/common/apache/lucene/util/Accountable;
access$200 F(Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache;)Z x0 java/lang/Class1 desiredAssertionStatus3
24
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable RuntimeVisibleAnnotations ?()Lcom/groupbyinc/flux/common/google/common/cache/Cache; ?(Lcom/groupbyinc/flux/common/google/common/cache/RemovalNotification;)V
SourceFile InnerClasses ! # $ 6 &