com.groupbyinc.flux.index.IndexWarmer$FieldDataWarmer.class Maven / Gradle / Ivy
???? 4' 5com/groupbyinc/flux/index/IndexWarmer$FieldDataWarmer java/lang/Object .com/groupbyinc/flux/index/IndexWarmer$Listener IndexWarmer.java %com/groupbyinc/flux/index/IndexWarmer FieldDataWarmer 0com/groupbyinc/flux/index/engine/Engine$Searcher 'com/groupbyinc/flux/index/engine/Engine
Searcher 7com/groupbyinc/flux/index/IndexWarmer$TerminationHandle TerminationHandle 9com/groupbyinc/flux/index/fielddata/IndexFieldData$Global 2com/groupbyinc/flux/index/fielddata/IndexFieldData Global Listener %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup executor Ljava/util/concurrent/Executor; indexFieldDataService ;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService; ](Ljava/util/concurrent/Executor;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataService;)V ()V " $
% ' ! ) this 7Lcom/groupbyinc/flux/index/IndexWarmer$FieldDataWarmer;
warmReader ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/index/engine/Engine$Searcher;)Lcom/groupbyinc/flux/index/IndexWarmer$TerminationHandle; *com/groupbyinc/flux/index/shard/IndexShard /
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService; 1 2
0 3 java/util/HashMap 5
6 % .com/groupbyinc/flux/index/mapper/MapperService 8
docMappers (Z)Ljava/lang/Iterable; : ;
9 < java/lang/Iterable > iterator ()Ljava/util/Iterator; @ A ? B
java/util/Map D java/util/Iterator F hasNext ()Z H I G J next ()Ljava/lang/Object; L M G N /com/groupbyinc/flux/index/mapper/DocumentMapper P mappers 9()Lcom/groupbyinc/flux/index/mapper/DocumentFieldMappers; R S
Q T 5com/groupbyinc/flux/index/mapper/DocumentFieldMappers V
W B ,com/groupbyinc/flux/index/mapper/FieldMapper Y fieldType 4()Lcom/groupbyinc/flux/index/mapper/MappedFieldType; [ \
Z ] 0com/groupbyinc/flux/index/mapper/MappedFieldType _ name ()Ljava/lang/String; a b
` c eagerGlobalOrdinals e I
` f java/lang/String h put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; j k E l #java/util/concurrent/CountDownLatch n size ()I p q E r (I)V " t
o u values ()Ljava/util/Collection; w x E y java/util/Collection { | B "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; ? ?
? ? $ lambda$warmReader$1 ?(Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/index/engine/Engine$Searcher;Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/util/concurrent/CountDownLatch;)V ? ?
? ? run(Lcom/groupbyinc/flux/index/IndexWarmer$FieldDataWarmer;Lcom/groupbyinc/flux/index/mapper/MappedFieldType;Lcom/groupbyinc/flux/index/engine/Engine$Searcher;Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/util/concurrent/CountDownLatch;)Ljava/lang/Runnable; ? ? ? java/util/concurrent/Executor ? execute (Ljava/lang/Runnable;)V ? ? ? ? lambda$warmReader$2 ((Ljava/util/concurrent/CountDownLatch;)V ? ?
? ? awaitTermination `(Ljava/util/concurrent/CountDownLatch;)Lcom/groupbyinc/flux/index/IndexWarmer$TerminationHandle; ? ? ? 2Lcom/groupbyinc/flux/index/mapper/MappedFieldType; indexName Ljava/lang/String; fieldMapper .Lcom/groupbyinc/flux/index/mapper/FieldMapper; docMapper 1Lcom/groupbyinc/flux/index/mapper/DocumentMapper;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard; searcher 2Lcom/groupbyinc/flux/index/engine/Engine$Searcher; 0Lcom/groupbyinc/flux/index/mapper/MapperService; warmUpGlobalOrdinals ULjava/util/Map; Ljava/util/Map; latch %Ljava/util/concurrent/CountDownLatch; java/lang/InterruptedException ? await ? $
o ? java/lang/Exception ? java/lang/System ? nanoTime ()J ? ?
? ? 9com/groupbyinc/flux/index/fielddata/IndexFieldDataService ? getForField h(Lcom/groupbyinc/flux/index/mapper/MappedFieldType;)Lcom/groupbyinc/flux/index/fielddata/IndexFieldData; ? ?
? ? getDirectoryReader B()Lcom/groupbyinc/flux/common/apache/lucene/index/DirectoryReader; ? ?
?
loadGlobal v(Lcom/groupbyinc/flux/common/apache/lucene/index/DirectoryReader;)Lcom/groupbyinc/flux/index/fielddata/IndexFieldData; ? ? ? >com/groupbyinc/flux/common/apache/lucene/index/DirectoryReader ? leaves ()Ljava/util/List; ? ?
? ? java/util/List ? isEmpty ? I ? ? get (I)Ljava/lang/Object; ? ? ? ? @com/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext ? load y(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/index/fielddata/AtomicFieldData; ? ? ?
warmerService <()Lcom/groupbyinc/flux/index/warmer/ShardIndexWarmerService; ? ?
0 ? 8com/groupbyinc/flux/index/warmer/ShardIndexWarmerService ? logger :()Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ?
? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? isTraceEnabled ? I ? ? *warmed global ordinals for [{}], took [{}] ? )com/groupbyinc/flux/common/unit/TimeValue ? timeValueNanos .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? countDown ? $
o ? M
lambda$null$0 F(Lcom/groupbyinc/flux/index/mapper/MappedFieldType;)Ljava/lang/Object; ? ?
s(Lcom/groupbyinc/flux/index/mapper/MappedFieldType;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; ? warn W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? java/lang/Throwable
start J ifd ;Lcom/groupbyinc/flux/index/fielddata/IndexFieldData$Global; reader @Lcom/groupbyinc/flux/common/apache/lucene/index/DirectoryReader; global 7Lcom/groupbyinc/flux/index/fielddata/IndexFieldData<*>; 4Lcom/groupbyinc/flux/index/fielddata/IndexFieldData; e Ljava/lang/Exception; Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessage *failed to warm-up global ordinals for [{}] '(Ljava/lang/String;Ljava/lang/Object;)V "
Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions BootstrapMethods
SourceFile InnerClasses ! " # Y *? &*+? (*,? *? + , ! t u v w - . ? ?+? 4N? 6Y? 7:-? =? C :? K ? Z? O ? Q:? U? X:? K ? 7? O ? Z:? ^: ? d:
? g? ???
? m W??ŧ??? oY? s ? v:? z ? } :? K ? '? O ? `:*? (*,+? ? ? ? ???? ? ? p W [ ? ^ ? ?
P % ? ? 0 H ? ? ? [ ? ? + , ? ? ? ? ? ? ? 1 ? ? ? ? ? D ? ? ! ? ? ? B { | } 0 ~ P W ? ^ ? f ? i ? u ? x ? { ? ? ? ? ? ? ? ? ?" K ? 9 E G? Q G? . Z ` i? 0 9 E G ? ? o G? -
? ? / *? ?? ? ? ?# ? ? ? ? ?? ?7*? *+? ?? :,? ?:? ? : ? Ϲ ? ? ? ?? ? ? ڹ ? W-? ? ? ? ? -? ? ??+? d? ?e? ?? ? ? ?? +:
-? ? ?+?
? ? ??
:? ??? p x ? p ? x ? ? ? ? ? f
k
^ X # M z
? + , ? [ ? ? ? ? ? ? ? ? ? ? ! # M Z ? ? ? ? # ? 0 ? F ? U ? _ ? b ? k ? p ? u ? x ? z ? { ? ~ ? ? ? ? ? ? ? ? ? ? ?" A ? F ` 0 o ? ? ) ` 0 o G ?]
? ? A ?Y*? d?? [ ? ? ? ? $ ? ? ? ? ? ? ? ? ? ? ?% &