com.groupbyinc.flux.index.rankeval.RatedSearchHit.class Maven / Gradle / Ivy
???? 4 1com/groupbyinc/flux/index/rankeval/RatedSearchHit java/lang/Object .com/groupbyinc/flux/common/io/stream/Writeable 4com/groupbyinc/flux/common/xcontent/ToXContentObject RatedSearchHit.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token :com/groupbyinc/flux/common/xcontent/ObjectParser$ValueType 0com/groupbyinc/flux/common/xcontent/ObjectParser ValueType %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup searchHit &Lcom/groupbyinc/flux/search/SearchHit; rating Ljava/util/Optional; )Ljava/util/Optional; HIT_FIELD 'Lcom/groupbyinc/flux/common/ParseField; RATING_FIELD PARSER >Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; =(Lcom/groupbyinc/flux/search/SearchHit;Ljava/util/Optional;)V ()V ) +
, . ! 0 this 3Lcom/groupbyinc/flux/index/rankeval/RatedSearchHit; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 5 $com/groupbyinc/flux/search/SearchHit 7
readSearchHit Z(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/search/SearchHit; 9 :
8 ; 0com/groupbyinc/flux/common/io/stream/StreamInput = readBoolean ()Z ? @
> A readVInt ()I C D
> E java/lang/Integer G valueOf (I)Ljava/lang/Integer; I J
H K java/util/Optional M of ((Ljava/lang/Object;)Ljava/util/Optional; O P
N Q empty ()Ljava/util/Optional; S T
N U ) *
W in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V [ \
8 ] isPresent _ @
N ` 1com/groupbyinc/flux/common/io/stream/StreamOutput b writeBoolean (Z)V d e
c f get ()Ljava/lang/Object; h i
N j intValue l D
H m writeVInt (I)V o p
c q out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; getSearchHit (()Lcom/groupbyinc/flux/search/SearchHit; getRating
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder z startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; | }
{ ~ hit ? field y(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/ToXContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
{ ? orElse &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
N ? \(Ljava/lang/String;Ljava/lang/Integer;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
{ ? endObject ? }
{ ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; parse i(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/rankeval/RatedSearchHit; &