
com.groupbyinc.flux.search.fetch.script.ScriptFieldsFetchSubPhase.class Maven / Gradle / Ivy
???? 3 ? Acom/groupbyinc/flux/search/fetch/script/ScriptFieldsFetchSubPhase java/lang/Object .com/groupbyinc/flux/search/fetch/FetchSubPhase ScriptFieldsFetchSubPhase.java Ecom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder =com/groupbyinc/flux/common/google/common/collect/ImmutableMap
Builder 9com/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext
HitContext Gcom/groupbyinc/flux/search/fetch/script/ScriptFieldsContext$ScriptField ;com/groupbyinc/flux/search/fetch/script/ScriptFieldsContext ScriptField ()V *Lcom/groupbyinc/flux/common/inject/Inject;
this CLcom/groupbyinc/flux/search/fetch/script/ScriptFieldsFetchSubPhase;
parseElements ()Ljava/util/Map; builder I()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder;
script_fields " @com/groupbyinc/flux/search/fetch/script/ScriptFieldsParseElement $
% put m(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; ' (
) scriptFields + build A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; - .
/ ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; GLcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; hitsExecutionNeeded 6(Lcom/groupbyinc/flux/search/internal/SearchContext;)Z context 3Lcom/groupbyinc/flux/search/internal/SearchContext; hitsExecute n(Lcom/groupbyinc/flux/search/internal/SearchContext;[Lcom/groupbyinc/flux/search/internal/InternalSearchHit;)V hits 8[Lcom/groupbyinc/flux/search/internal/InternalSearchHit; hitExecutionNeeded 1com/groupbyinc/flux/search/internal/SearchContext < hasScriptFields ()Z > ?
= @
hitExecute q(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext;)V java/io/IOException D java/lang/RuntimeException F ?()Lcom/groupbyinc/flux/search/fetch/script/ScriptFieldsContext; + H
= I fields ()Ljava/util/List; K L
M java/util/List O iterator ()Ljava/util/Iterator; Q R P S java/util/Iterator U hasNext W ? V X next ()Ljava/lang/Object; Z [ V \ script +()Lcom/groupbyinc/flux/script/SearchScript; ^ _
`
readerContext D()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext; b c
d 'com/groupbyinc/flux/script/SearchScript f getLeafSearchScript q(Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReaderContext;)Lcom/groupbyinc/flux/script/LeafSearchScript; h i g j java/lang/IllegalStateException l Failed to load script n *(Ljava/lang/String;Ljava/lang/Throwable;)V p
m q +com/groupbyinc/flux/script/LeafSearchScript s docId ()I u v
w setDocument (I)V y z t { run } [ t ~ unwrap &(Ljava/lang/Object;)Ljava/lang/Object; ? ? t ? ignoreException ? ?
? hit 9()Lcom/groupbyinc/flux/search/internal/InternalSearchHit; ? ?
? 5com/groupbyinc/flux/search/internal/InternalSearchHit ? fieldsOrNull ?
? ? java/util/HashMap ? z
? ? (Ljava/util/Map;)V K ?
? ? K
? ? name ()Ljava/lang/String; ? ?
?
java/util/Map ? get ? ? ? ? )com/groupbyinc/flux/search/SearchHitField ? java/util/Collections ? emptyList ? L
? ? java/util/Collection ? java/util/ArrayList ? (Ljava/util/Collection;)V ?
? ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; ? ?
? ? :com/groupbyinc/flux/search/internal/InternalSearchHitField ? %(Ljava/lang/String;Ljava/util/List;)V ?
? ? 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ' ? ? ?
leafScript -Lcom/groupbyinc/flux/script/LeafSearchScript; e1 Ljava/io/IOException; value Ljava/lang/Object; e Ljava/lang/RuntimeException; values $Ljava/util/List; Ljava/util/List; hitField +Lcom/groupbyinc/flux/search/SearchHitField; scriptField ILcom/groupbyinc/flux/search/fetch/script/ScriptFieldsContext$ScriptField;
hitContext ;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext; Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable Signature U()Ljava/util/Map;
StackMapTable
SourceFile InnerClasses ! ? 3 *? ? ? ?
/ 0 ? ? u #? !L+#? %Y? &? *,? %Y? &? *W+? 0? ? # 2 ? 1 ? 4 5 6 7 ? ? 3 4 ? 6 ? ? 5 6 ? <