com.groupbyinc.flux.index.rankeval.RankEvalResponse.class Maven / Gradle / Ivy
???? 4? 3com/groupbyinc/flux/index/rankeval/RankEvalResponse )com/groupbyinc/flux/action/ActionResponse 4com/groupbyinc/flux/common/xcontent/ToXContentObject RankEvalResponse.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 Bcom/groupbyinc/flux/common/xcontent/ObjectParser$NamedObjectParser 0com/groupbyinc/flux/common/xcontent/ObjectParser NamedObjectParser %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup metricScore D details Ljava/util/Map; XLjava/util/Map; failures 8Ljava/util/Map;
DETAILS_FIELD 'Lcom/groupbyinc/flux/common/ParseField; FAILURES_FIELD PARSER >Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; "(DLjava/util/Map;Ljava/util/Map;)V ()V ) +
, . java/util/HashMap 0 (Ljava/util/Map;)V ) 2
1 3 5 ! 7 this 5Lcom/groupbyinc/flux/index/rankeval/RankEvalResponse; partialResults getMetricScore ()D getPartialResults ()Ljava/util/Map; java/util/Collections @ unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; B C
A D getFailures toString ()Ljava/lang/String; "com/groupbyinc/flux/common/Strings I D(Lcom/groupbyinc/flux/common/xcontent/ToXContent;)Ljava/lang/String; G K
J L writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V java/io/IOException P N O
R 1com/groupbyinc/flux/common/io/stream/StreamOutput T writeDouble (D)V V W
U X
java/util/Map Z size ()I \ ] [ ^ writeVInt (I)V ` a
U b keySet ()Ljava/util/Set; d e [ f
java/util/Set h iterator ()Ljava/util/Iterator; j k i l java/util/Iterator n hasNext ()Z p q o r next ()Ljava/lang/Object; t u o v java/lang/String x writeString (Ljava/lang/String;)V z {
U | get &(Ljava/lang/Object;)Ljava/lang/Object; ~ [ ? 3com/groupbyinc/flux/index/rankeval/EvalQueryQuality ?
? R java/lang/Throwable ? writeException (Ljava/lang/Throwable;)V ? ?
U ? queryId Ljava/lang/String; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; readFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V ? ?
? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readDouble ? =
? ? readVInt ? ]
? ? ) a
1 ?
readString ? H
? ? ) ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? [ ?
readException ()Ljava/lang/Exception; ? ?
? ? partial 5Lcom/groupbyinc/flux/index/rankeval/EvalQueryQuality; i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; partialResultSize failuresSize
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 ? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? metric_score ? field J(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? ? ?
? ? endObject ? ?
? ? ! java/lang/Exception ? *com/groupbyinc/flux/ElasticsearchException ? generateFailureXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Exception;Z)V ? ?
? ? key builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent k(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/index/rankeval/RankEvalResponse; &