com.groupbyinc.flux.search.fetch.subphase.ParentFieldSubFetchPhase.class Maven / Gradle / Ivy
???? 4 ? Bcom/groupbyinc/flux/search/fetch/subphase/ParentFieldSubFetchPhase java/lang/Object .com/groupbyinc/flux/search/fetch/FetchSubPhase ParentFieldSubFetchPhase.java 9com/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext
HitContext ()V
this DLcom/groupbyinc/flux/search/fetch/subphase/ParentFieldSubFetchPhase;
hitExecute q(Lcom/groupbyinc/flux/search/internal/SearchContext;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext;)V 1com/groupbyinc/flux/search/internal/SearchContext storedFieldsContext 8()Lcom/groupbyinc/flux/search/fetch/StoredFieldsContext;
4com/groupbyinc/flux/search/fetch/StoredFieldsContext fetchFields ()Z
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;
! hit (()Lcom/groupbyinc/flux/search/SearchHit; # $
% $com/groupbyinc/flux/search/SearchHit ' getType ()Ljava/lang/String; ) *
( + .com/groupbyinc/flux/index/mapper/MapperService - documentMapper E(Ljava/lang/String;)Lcom/groupbyinc/flux/index/mapper/DocumentMapper; / 0
. 1 /com/groupbyinc/flux/index/mapper/DocumentMapper 3 parentFieldMapper 6()Lcom/groupbyinc/flux/index/mapper/ParentFieldMapper; 5 6
4 7 2com/groupbyinc/flux/index/mapper/ParentFieldMapper 9 active ;
: < reader =()Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; > ?
@ docId ()I B C
D getParentId ?(Lcom/groupbyinc/flux/index/mapper/ParentFieldMapper;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader;I)Ljava/lang/String; F G
H java/lang/String J fieldsOrNull ()Ljava/util/Map; L M
( N java/util/HashMap P
Q
fields (Ljava/util/Map;)V S T
( U
java/util/Map W _parent Y 1com/groupbyinc/flux/common/document/DocumentField [ java/util/Collections ]
singletonList $(Ljava/lang/Object;)Ljava/util/List; _ `
^ a %(Ljava/lang/String;Ljava/util/List;)V c
\ d put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; f g X h context 3Lcom/groupbyinc/flux/search/internal/SearchContext;
hitContext ;Lcom/groupbyinc/flux/search/fetch/FetchSubPhase$HitContext; 4Lcom/groupbyinc/flux/index/mapper/ParentFieldMapper; parentId Ljava/lang/String; VLjava/util/Map; Ljava/util/Map; java/io/IOException s name u *
: v 9com/groupbyinc/flux/common/apache/lucene/index/LeafReader x getSortedDocValues T(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/index/SortedDocValues; z {
y | >com/groupbyinc/flux/common/apache/lucene/index/SortedDocValues ~ advanceExact (I)Z ? ?
? binaryValue :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; ? ?
? 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef ? length I ? ? ? ? utf8ToString ? *
? ? $com/groupbyinc/flux/ExceptionsHelper ? convertToElastic C(Ljava/lang/Exception;)Lcom/groupbyinc/flux/ElasticsearchException; ? ?
? ? docValues @Lcom/groupbyinc/flux/common/apache/lucene/index/SortedDocValues; 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; e Ljava/io/IOException; fieldMapper ;Lcom/groupbyinc/flux/common/apache/lucene/index/LeafReader; Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses 1 ? / *? ? ? ? $ ? 6 y+? ? +? ? ? ?+? ",? &? ,? 2? 8N-? =? ?-,? A,? E? I:? ?,? &? O:? ? QY? R:,? &? VZ? \YZ? b? e? i W? ? > y y j k y l m $ U 5 n : ? o p I 0 S r ? I 0 S q ? : ( ) + $ , + - , 0 : 1 ? 3 @ 6 I 7 N 8 W 9 ` ; x <